diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-02 22:51:50 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-02 22:55:38 -0400 |
commit | 11f22867f9cdbfc6656905861090cded91a41bd7 (patch) | |
tree | 584278caebffe696db13119ca8b2e67fc7d08410 /src/shared/path-util.c | |
parent | 44a6b1b68029833893f6e9cee35aa27a974038f6 (diff) |
time-dst: use _cleanup_
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; |