Explorar o código

* Fix uninitialized result warning

git-svn-id: trunk@42983 -
michael %!s(int64=6) %!d(string=hai) anos
pai
achega
ed41c45af3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;