diff --git a/src/mu-str.c b/src/mu-str.c index 1f0d1142..bb16703b 100644 --- a/src/mu-str.c +++ b/src/mu-str.c @@ -323,7 +323,7 @@ mu_str_date_parse_hdwmy (const char* str) if (num <= 0 || num > 9999) return never; - if (!end || end[1] != '\0') + if (end == NULL || *end != '\0') return never; switch (end[0]) {