lib/upnp/ContentDirectoryService: work around GCC 5 bug

Closes #193
This commit is contained in:
Max Kellermann 2018-01-18 21:55:58 +01:00
parent bbc5212436
commit 0ead72a404
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl) const
const char *s = ixmlwrap::getFirstElementValue(response.get(),
"SearchCaps");
if (s == nullptr || *s == 0)
return {};
/* we could just "return {}" here, but GCC 5 doesn't
understand that */
return std::forward_list<std::string>();
return SplitString(s, ',', false);
}