Fix menu settings loader when operating at close to depth 0.
This commit is contained in:
parent
56ce6caed3
commit
45aeb9ad89
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue