Browse Source

* Fix bug #0033544, result not properly initialized

git-svn-id: trunk@38770 -
michael 7 years ago
parent
commit
f8be245097
1 changed files with 3 additions and 0 deletions
  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;