Commit 0ead72a4 authored by Max Kellermann's avatar Max Kellermann

lib/upnp/ContentDirectoryService: work around GCC 5 bug

Closes #193
parent bbc52124
......@@ -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);
}
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