瀏覽代碼

* Fix uninitialized result warning

git-svn-id: trunk@42983 -
michael 6 年之前
父節點
當前提交
ed41c45af3
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;