diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-13 09:39:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-13 09:39:02 +0200 |
commit | c641aabe3385f2f3604dee622e0b92dc37be074c (patch) | |
tree | e394317f11527422668123fea508ec6e626d0606 | |
parent | 2139d8bba8620a194b980435a3093147f0de50cf (diff) | |
download | mpd-c641aabe3385f2f3604dee622e0b92dc37be074c.tar.gz mpd-c641aabe3385f2f3604dee622e0b92dc37be074c.tar.xz mpd-c641aabe3385f2f3604dee622e0b92dc37be074c.zip |
song: song_get_url: fix "/" prefix for songs in music_root
Diffstat (limited to '')
-rw-r--r-- | src/song.c | 2 |
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), |