From 16d6a7bd45e11a68c5261cd185543f63345aafcb Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 27 Jun 2011 21:31:34 +0300 Subject: [PATCH] * mu-msg-str.c: fix memory error in date parsing --- src/mu-str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) {