From 4479ece74d8a85359a5ced6431a6b3d5f0d2e0c5 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Mon, 11 Dec 2006 20:18:04 +0000 Subject: 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 --- src/command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/command.c b/src/command.c index 1f37cfda6..36587af36 100644 --- a/src/command.c +++ b/src/command.c @@ -648,6 +648,12 @@ static int handleList(int fd, int *permission, int argc, char *argv[]) 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 */ if (argc == 3) { if (tagType != TAG_ITEM_ALBUM) { -- cgit v1.2.3