path/path.c: Changed PopLastSegment parameters order.

This commit is contained in:
Jose Marcial Vieira Bisneto 2016-11-26 10:20:23 -03:00
parent 8da6e2df69
commit 0f5964ad3c
2 changed files with 2 additions and 2 deletions

View file

@ -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, '/');