fix a bug in pringSongUrl, don't print leading '/' for songs in root dir
git-svn-id: https://svn.musicpd.org/mpd/trunk@2631 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ Directory * newDirectory(char * dirname, Directory * parent) {
|
||||
|
||||
directory = malloc(sizeof(Directory));
|
||||
|
||||
if(dirname!=NULL) directory->path = strdup(dirname);
|
||||
if(dirname && strlen(dirname)) directory->path = strdup(dirname);
|
||||
else directory->path = NULL;
|
||||
directory->subDirectories = newDirectoryList();
|
||||
directory->songs = newSongList();
|
||||
|
||||
Reference in New Issue
Block a user