Commit 1abc96fa authored by Max Kellermann's avatar Max Kellermann

db/upnp: remove special case for "*"

Passing this to csvToStrings() will do the same.
parent 0fa98479
...@@ -251,9 +251,7 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl, ...@@ -251,9 +251,7 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl,
} }
bool success = true; bool success = true;
if (strcmp(s, "*") == 0) { if (!csvToStrings(s, result)) {
result.insert(result.end(), "*");
} else if (!csvToStrings(s, result)) {
error.Set(upnp_domain, "Bad response"); error.Set(upnp_domain, "Bad response");
success = false; success = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment