aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 20:37:17 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 20:37:17 +0100
commit1abc96fa27ad102436fccad3b6643c6529a0dcb4 (patch)
treeadeebabf948cbcd0f8a49b47f0322b09d850d1b7
parent0fa98479adc40435ac91d385354f7b372f9ae44e (diff)
downloadmpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.tar.gz
mpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.tar.xz
mpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.zip
db/upnp: remove special case for "*"
Passing this to csvToStrings() will do the same.
-rw-r--r--src/db/upnp/ContentDirectoryService.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/upnp/ContentDirectoryService.cxx
index d57f426ec..2f94a0b3f 100644
--- a/src/db/upnp/ContentDirectoryService.cxx
+++ b/src/db/upnp/ContentDirectoryService.cxx
@@ -251,9 +251,7 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl,
}
bool success = true;
- if (strcmp(s, "*") == 0) {
- result.insert(result.end(), "*");
- } else if (!csvToStrings(s, result)) {
+ if (!csvToStrings(s, result)) {
error.Set(upnp_domain, "Bad response");
success = false;
}