Commit c641aabe authored by Eric Wong's avatar Eric Wong Committed by Max Kellermann

song: song_get_url: fix "/" prefix for songs in music_root

parent 2139d8bb
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment