Merge pull request #250 from chme/lsinfo

[mpd] Return playlists if 'lsinfo' is called without any parameters
This commit is contained in:
ejurgensen 2016-04-09 10:20:54 +02:00
commit 06663e4ca2

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.