path/path.c: Changed PopLastSegment parameters order.
This commit is contained in:
parent
8da6e2df69
commit
0f5964ad3c
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ int IsJustAKey (char *p)
|
|||
// PopLastSegment returns a new Path without its final segment, and the final
|
||||
// segment, separately. If there is no more to pop (the path is just a key),
|
||||
// the original path is returned.
|
||||
int PopLastSegment (char *p, char **str)
|
||||
int PopLastSegment (char **str, char *p)
|
||||
{
|
||||
if (IsJustAKey(p)) return 0;
|
||||
*str = strrchr(p, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue