Browse Source

* Patch from Andrey Zubarev to fix uninitialized result in EncodeURLElement (Bug ID 32409)

git-svn-id: trunk@37196 -
michael 8 years ago
parent
commit
ea1677f244
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-web/src/base/fphttpclient.pp

+ 1 - 0
packages/fcl-web/src/base/fphttpclient.pp

@@ -383,6 +383,7 @@ var
   P : PChar;
   P : PChar;
   c: AnsiChar;
   c: AnsiChar;
 begin
 begin
+  result:='';
   l:=Length(S);
   l:=Length(S);
   If (l=0) then Exit;
   If (l=0) then Exit;
   SetLength(Result,l*3);
   SetLength(Result,l*3);