aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-13 09:39:02 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 09:39:02 +0200
commitc641aabe3385f2f3604dee622e0b92dc37be074c (patch)
treee394317f11527422668123fea508ec6e626d0606 /src
parent2139d8bba8620a194b980435a3093147f0de50cf (diff)
downloadmpd-c641aabe3385f2f3604dee622e0b92dc37be074c.tar.gz
mpd-c641aabe3385f2f3604dee622e0b92dc37be074c.tar.xz
mpd-c641aabe3385f2f3604dee622e0b92dc37be074c.zip
song: song_get_url: fix "/" prefix for songs in music_root
Diffstat (limited to 'src')
-rw-r--r--src/song.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.c b/src/song.c
index 9cecbf815..127d39eb4 100644
--- a/src/song.c
+++ b/src/song.c
@@ -124,7 +124,7 @@ song_get_url(struct song *song, char *path_max_tmp)
assert(song != NULL);
assert(*song->url);
- if (!song->parent || !song->parent->path)
+ if (!song->parent || isRootDirectory(song->parent->path))
strcpy(path_max_tmp, song->url);
else
pfx_dir(path_max_tmp, song->url, strlen(song->url),