Handle top-level path pop.

pull/3/head
Jonathan Moore Liles 2008-05-06 21:01:24 -05:00
parent adf0ca22f3
commit f927e39681
1 changed files with 3 additions and 0 deletions

View File

@ -229,6 +229,9 @@ path_pop ( char *path )
int l = strlen( path );
if ( ! l )
return;
if ( path[ l - 1 ] == '/' )
path[ l - 1 ] = '\0';