mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:59:13 +02:00
LazFileUtils: fix uninitialized result in ChompPathDelim. Issue #0029866.
git-svn-id: trunk@52004 -
This commit is contained in:
parent
e07c89f611
commit
5d6e5012ea
@ -733,10 +733,9 @@ function ChompPathDelim(const Path: string): string;
|
||||
var
|
||||
Len, MinLen: Integer;
|
||||
begin
|
||||
Result:=Path;
|
||||
if Path = '' then
|
||||
exit;
|
||||
|
||||
Result:=Path;
|
||||
Len:=length(Result);
|
||||
if (Result[1] in AllowDirectorySeparators) then begin
|
||||
MinLen := 1;
|
||||
|
Loading…
Reference in New Issue
Block a user