From f06fe76d3591b003e0c3c1b742b84282671d10ef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Jun 2015 23:29:07 +0200 Subject: SongFilter: add assertion to StringMatch() --- src/SongFilter.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 5e24b143a..5860b5ddd 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -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; -- cgit v1.2.3