Commit 4943606f authored by Max Kellermann's avatar Max Kellermann

db/upnp: append characters instead of single-character strings

parent 87629dda
...@@ -296,7 +296,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server, ...@@ -296,7 +296,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
if (!cond.empty()) { if (!cond.empty()) {
cond += " and "; cond += " and ";
} }
cond += "("; cond += '(';
bool first(true); bool first(true);
for (const auto& cap : searchcaps) { for (const auto& cap : searchcaps) {
if (first) if (first)
...@@ -311,7 +311,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server, ...@@ -311,7 +311,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
} }
dquote(cond, item.GetValue().c_str()); dquote(cond, item.GetValue().c_str());
} }
cond += ")"; cond += ')';
} }
break; break;
......
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