From c641aabe3385f2f3604dee622e0b92dc37be074c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Oct 2008 09:39:02 +0200 Subject: song: song_get_url: fix "/" prefix for songs in music_root --- src/song.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song.c') 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), -- cgit v1.2.3