[mpd] Return playlists if 'lsinfo' is called without any parameters
This commit is contained in:
parent
36a9ed8fe8
commit
7713096d84
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue