aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-12 17:38:52 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-12 17:38:52 +0000
commit0473f3ea76c57be8b20e1fae628ec7ae7f04b5f7 (patch)
tree193c9408ec9d1ddf29adeb535fc88eb1f09d676e /src/song.c
parentee26cc33b60bab97972fe94c0908f181c6527c6a (diff)
downloadmpd-0473f3ea76c57be8b20e1fae628ec7ae7f04b5f7.tar.gz
mpd-0473f3ea76c57be8b20e1fae628ec7ae7f04b5f7.tar.xz
mpd-0473f3ea76c57be8b20e1fae628ec7ae7f04b5f7.zip
don't store only relative paths in the directory structure, its probably not
worth the savings in memory for the extra cpu it requires git-svn-id: https://svn.musicpd.org/mpd/trunk@2630 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/song.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 7d28a3348..14e4ff9b7 100644
--- a/src/song.c
+++ b/src/song.c
@@ -315,7 +315,7 @@ char * getSongUrl(Song * song) {
return NULL;
}
- if(!song->parentDir || !song->parentDir->name) return song->url;
+ if(!song->parentDir || !song->parentDir->path) return song->url;
/* be careful with this!*/
if(song == lastSong) return buffer;