* mu-msg-str.c: fix memory error in date parsing

This commit is contained in:
Dirk-Jan C. Binnema 2011-06-27 21:31:34 +03:00
parent 7da25411bf
commit 16d6a7bd45
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {