Commit f06fe76d authored by Max Kellermann's avatar Max Kellermann

SongFilter: add assertion to StringMatch()

parent eb86fdfb
......@@ -82,6 +82,8 @@ SongFilter::Item::StringMatch(const char *s) const
assert(s != nullptr);
#endif
assert(tag != LOCATE_TAG_MODIFIED_SINCE);
if (fold_case) {
const std::string folded = IcuCaseFold(s);
return folded.find(value) != folded.npos;
......
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