瀏覽代碼

* Fix bug #0033544, result not properly initialized

git-svn-id: trunk@38770 -
michael 7 年之前
父節點
當前提交
f8be245097
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/fcl-base/src/uriparser.pp

+ 3 - 0
packages/fcl-base/src/uriparser.pp

@@ -167,11 +167,14 @@ begin
 end;
 
 function ParseURI(const URI, DefaultProtocol: String; DefaultPort: Word;Decode : Boolean = True):  TURI;
+
 var
   s, Authority: String;
   i,j: Integer;
   PortValid: Boolean;
+  
 begin
+  Result:=Default(TURI);
   Result.Protocol := LowerCase(DefaultProtocol);
   Result.Port := DefaultPort;