From a5e7d0a90fc13ee4b81128483931ccc3bf65d84c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Jan 2014 20:21:01 +0100 Subject: db/upnp: require an empty input capability set --- src/db/upnp/ContentDirectoryService.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db') diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/upnp/ContentDirectoryService.cxx index aea8144bf..d49a6b6fd 100644 --- a/src/db/upnp/ContentDirectoryService.cxx +++ b/src/db/upnp/ContentDirectoryService.cxx @@ -220,6 +220,8 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl, std::set &result, Error &error) { + assert(result.empty()); + IXML_Document *request = UpnpMakeAction("GetSearchCapabilities", m_serviceType.c_str(), 0, @@ -244,7 +246,6 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl, std::string tbuf = ixmlwrap::getFirstElementValue(response, "SearchCaps"); ixmlDocument_free(response); - result.clear(); if (!tbuf.compare("*")) { result.insert(result.end(), "*"); } else if (!tbuf.empty()) { -- cgit v1.2.3