diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 23:45:09 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:26:24 -0700 |
commit | c87ce02575e0a9d5ac3e50938688187ea28ad400 (patch) | |
tree | 49c40b984e1c1aa9c18a805d169dcf062efe8d77 | |
parent | 20f2816ebc066e64f7800011895e9a693a031767 (diff) | |
download | mpd-c87ce02575e0a9d5ac3e50938688187ea28ad400.tar.gz mpd-c87ce02575e0a9d5ac3e50938688187ea28ad400.tar.xz mpd-c87ce02575e0a9d5ac3e50938688187ea28ad400.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 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), |