Fix menu settings loader when operating at close to depth 0.

This commit is contained in:
Jonathan Moore Liles 2008-05-06 15:35:08 -05:00
parent 56ce6caed3
commit 45aeb9ad89
1 changed files with 4 additions and 3 deletions

View File

@ -234,9 +234,10 @@ path_pop ( char *path )
s = rindex( path, '/' );
s = s ? s : path;
*(s + 1) = '\0';
if ( s )
*(s + 1) = '\0';
else
*path = '\0';
}
void