mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +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
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user