mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 12:29:32 +01:00
* Fix bug #0033544, result not properly initialized
git-svn-id: trunk@38770 -
This commit is contained in:
parent
e4ef17b5c0
commit
f8be245097
@ -167,11 +167,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function ParseURI(const URI, DefaultProtocol: String; DefaultPort: Word;Decode : Boolean = True): TURI;
|
function ParseURI(const URI, DefaultProtocol: String; DefaultPort: Word;Decode : Boolean = True): TURI;
|
||||||
|
|
||||||
var
|
var
|
||||||
s, Authority: String;
|
s, Authority: String;
|
||||||
i,j: Integer;
|
i,j: Integer;
|
||||||
PortValid: Boolean;
|
PortValid: Boolean;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Result:=Default(TURI);
|
||||||
Result.Protocol := LowerCase(DefaultProtocol);
|
Result.Protocol := LowerCase(DefaultProtocol);
|
||||||
Result.Port := DefaultPort;
|
Result.Port := DefaultPort;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user