Handle top-level path pop.
This commit is contained in:
parent
adf0ca22f3
commit
f927e39681
|
@ -229,6 +229,9 @@ path_pop ( char *path )
|
||||||
|
|
||||||
int l = strlen( path );
|
int l = strlen( path );
|
||||||
|
|
||||||
|
if ( ! l )
|
||||||
|
return;
|
||||||
|
|
||||||
if ( path[ l - 1 ] == '/' )
|
if ( path[ l - 1 ] == '/' )
|
||||||
path[ l - 1 ] = '\0';
|
path[ l - 1 ] = '\0';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue