aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 aa6641020..12fea7b6d 100644
--- a/src/song.c
+++ b/src/song.c
@@ -85,7 +85,7 @@ void song_free(struct mpd_song * song)
ssize_t song_print_url(struct mpd_song *song, int fd)
{
- if (song->parent && song->parent->path)
+ if (song->parent && !isRootDirectory(song->parent->path))
return fdprintf(fd, "%s%s/%s\n", SONG_FILE,
directory_get_path(song->parent), song->url);
return fdprintf(fd, "%s%s\n", SONG_FILE, song->url);