aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index bb3ff08ac..a52391b42 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -350,7 +350,9 @@ int tag_equal(struct tag *tag1, struct tag *tag2)
static inline char *fix_utf8(char *str) {
char *temp;
- if (str != NULL && validUtf8String(str))
+ assert(str != NULL);
+
+ if (validUtf8String(str))
return str;
DEBUG("not valid utf8 in tag: %s\n",str);