mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
* Small improvement
This commit is contained in:
parent
2536041230
commit
148bde3f8f
@ -499,13 +499,9 @@ end;
|
||||
|
||||
function ExcludeLeadingPathDelimiter(Const Path: PathStr): PathStr;
|
||||
|
||||
Var
|
||||
L : Integer;
|
||||
|
||||
begin
|
||||
Result:=Path;
|
||||
L:=Length(Result);
|
||||
If (L>0) and CharInSet(Result[1],AllowDirectorySeparators) then
|
||||
If (Length(Result)>0) and CharInSet(Result[1],AllowDirectorySeparators) then
|
||||
Delete(Result,1,1);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user