[mpd] Return playlists if 'lsinfo' is called without any parameters

This commit is contained in:
chme 2016-04-05 21:04:44 +02:00
parent 36a9ed8fe8
commit 7713096d84
1 changed files with 1 additions and 1 deletions

View File

@ -2995,7 +2995,7 @@ mpd_command_lsinfo(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
}
print_playlists = 0;
if (argc > 1 && (strncmp(parent, "/", 1) == 0 && strlen(parent) == 1))
if ((strncmp(parent, "/", 1) == 0 && strlen(parent) == 1))
{
/*
* Special handling necessary if the root directory '/' is given.