From c87ce02575e0a9d5ac3e50938688187ea28ad400 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Oct 2008 23:45:09 -0700 Subject: song: song_get_url: fix "/" prefix for songs in music_root --- src/song.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/song.c b/src/song.c index 12fea7b6d..77d113fd4 100644 --- a/src/song.c +++ b/src/song.c @@ -240,7 +240,7 @@ char *song_get_url(struct mpd_song *song, char *path_max_tmp) 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), -- cgit v1.2.3