diff options
| -rw-r--r-- | polyp/scache.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/polyp/scache.c b/polyp/scache.c index 143f9740..54563bad 100644 --- a/polyp/scache.c +++ b/polyp/scache.c @@ -303,10 +303,7 @@ static void add_file(struct pa_core *c, const char *pathname) {      struct stat st;      const char *e; -    if (!(e = strrchr(pathname, '/'))) -        e = pathname; -    else -        e++; +    e = pa_path_get_filename(pathname);      if (stat(pathname, &st) < 0) {          pa_log(__FILE__": stat('%s') failed: %s\n", pathname, strerror(errno));  | 
