LazFileUtils: fix uninitialized result in ChompPathDelim. Issue #0029866.

git-svn-id: trunk@52004 -
This commit is contained in:
bart 2016-03-20 22:08:06 +00:00
parent e07c89f611
commit 5d6e5012ea

View File

@ -733,10 +733,9 @@ function ChompPathDelim(const Path: string): string;
var var
Len, MinLen: Integer; Len, MinLen: Integer;
begin begin
Result:=Path;
if Path = '' then if Path = '' then
exit; exit;
Result:=Path;
Len:=length(Result); Len:=length(Result);
if (Result[1] in AllowDirectorySeparators) then begin if (Result[1] in AllowDirectorySeparators) then begin
MinLen := 1; MinLen := 1;