Making "list any" fail with an error instead of OK with no results.
git-svn-id: https://svn.musicpd.org/mpd/trunk@5139 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
ba4b4d8ad9
commit
4479ece74d
@ -648,6 +648,12 @@ static int handleList(int fd, int *permission, int argc, char *argv[])
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tagType == LOCATE_TAG_ANY_TYPE) {
|
||||||
|
commandError(fd, ACK_ERROR_ARG,
|
||||||
|
"\"any\" is not a valid return tag type");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* for compatibility with < 0.12.0 */
|
/* for compatibility with < 0.12.0 */
|
||||||
if (argc == 3) {
|
if (argc == 3) {
|
||||||
if (tagType != TAG_ITEM_ALBUM) {
|
if (tagType != TAG_ITEM_ALBUM) {
|
||||||
|
Loading…
Reference in New Issue
Block a user