aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-12-11 20:18:04 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-12-11 20:18:04 +0000
commit4479ece74d8a85359a5ced6431a6b3d5f0d2e0c5 (patch)
tree48034e6d0dcec99ca2b584eab9e3db8006de2e4c
parentba4b4d8ad98bfe2deffbe9164476da9e6504d2bf (diff)
downloadmpd-4479ece74d8a85359a5ced6431a6b3d5f0d2e0c5.tar.gz
mpd-4479ece74d8a85359a5ced6431a6b3d5f0d2e0c5.tar.xz
mpd-4479ece74d8a85359a5ced6431a6b3d5f0d2e0c5.zip
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
-rw-r--r--src/command.c6
1 files changed, 6 insertions, 0 deletions
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) {