diff options
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r-- | src/shared/path-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c index b623fc3dd5..0c1b6a0ab0 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -50,7 +50,8 @@ char *path_get_file_name(const char *p) { assert(p); - if ((r = strrchr(p, '/'))) + r = strrchr(p, '/'); + if (r) return r + 1; return (char*) p; |