aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-25 23:29:07 +0200
committerMax Kellermann <max@duempel.org>2015-06-25 23:29:07 +0200
commitf06fe76d3591b003e0c3c1b742b84282671d10ef (patch)
tree8748d381aa2cff1475282986c323e29fbb6879c8 /src
parenteb86fdfbea6254d6966e59d80b43af3e5152fe3f (diff)
downloadmpd-f06fe76d3591b003e0c3c1b742b84282671d10ef.tar.gz
mpd-f06fe76d3591b003e0c3c1b742b84282671d10ef.tar.xz
mpd-f06fe76d3591b003e0c3c1b742b84282671d10ef.zip
SongFilter: add assertion to StringMatch()
Diffstat (limited to 'src')
-rw-r--r--src/SongFilter.cxx2
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;