mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 11:29:20 +02:00
* check zero length instead of comparing to empty string
This commit is contained in:
parent
18717aaec5
commit
abb65bc2e5
@ -201,7 +201,7 @@ begin
|
||||
S := GetEnv ('HOME');
|
||||
{$ENDIF FPC_FEXPAND_GETENV_PCHAR}
|
||||
{$ENDIF FPC_FEXPAND_SYSUTILS}
|
||||
if (S = '') or (Length (S) = 1) and (Length (Pa) > 1)
|
||||
if (Length(S)=0) or (Length (S) = 1) and (Length (Pa) > 1)
|
||||
and (S [1] = DirectorySeparator) then
|
||||
Delete (Pa, 1, 1)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user