Browse Source

* Fix uninitialized result warning

git-svn-id: trunk@42983 -
michael 5 years ago
parent
commit
ed41c45af3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-web/src/base/httpprotocol.pp

+ 2 - 0
packages/fcl-web/src/base/httpprotocol.pp

@@ -158,6 +158,7 @@ var
 
 begin
   L:=Length(Astr);
+  Result:='';
   SetLength(Result,L);
   If (L=0) then
     exit;
@@ -213,6 +214,7 @@ var
 
 begin
   L:=Length(AStr);
+  Result:='';
   SetLength(Result,L*3); // Worst case scenario
   if (L=0) then
     exit;