Skip to content

Commit ab20219

Browse files
Fix compiler warning
The 'result' variable is not initialized with a value.
1 parent dffb838 commit ab20219

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/code/bencode.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ constructor TBEncoded.Create(Stream: TStream);
106106
var
107107
X: char;
108108
begin
109+
Result := '';
109110
// loop until we come across it
110111
X := ' ';
111112
repeat

0 commit comments

Comments
 (0)