diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 20:37:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 20:37:17 +0100 |
commit | 1abc96fa27ad102436fccad3b6643c6529a0dcb4 (patch) | |
tree | adeebabf948cbcd0f8a49b47f0322b09d850d1b7 /src/db | |
parent | 0fa98479adc40435ac91d385354f7b372f9ae44e (diff) | |
download | mpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.tar.gz mpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.tar.xz mpd-1abc96fa27ad102436fccad3b6643c6529a0dcb4.zip |
db/upnp: remove special case for "*"
Passing this to csvToStrings() will do the same.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/upnp/ContentDirectoryService.cxx | 4 |
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; } |