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

This commit is contained in:
Max Kellermann 2014-01-22 21:55:58 +01:00
parent 87629dda81
commit 4943606f4a

View File

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