diff options
author | Max Kellermann <max@duempel.org> | 2015-06-25 23:29:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-25 23:29:07 +0200 |
commit | f06fe76d3591b003e0c3c1b742b84282671d10ef (patch) | |
tree | 8748d381aa2cff1475282986c323e29fbb6879c8 /src/SongFilter.cxx | |
parent | eb86fdfbea6254d6966e59d80b43af3e5152fe3f (diff) |
SongFilter: add assertion to StringMatch()
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r-- | src/SongFilter.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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; |