projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b0f87
)
We have a generic function for extracting the filename, let's use it.
author
Pierre Ossman
<ossman@cendio.se>
Thu, 5 Jan 2006 17:14:51 +0000
(17:14 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Thu, 5 Jan 2006 17:14:51 +0000
(17:14 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@368
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
polyp/scache.c
patch
|
blob
|
history
diff --git
a/polyp/scache.c
b/polyp/scache.c
index
143f974
..
54563ba
100644
(file)
--- 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));