* mu-msg-str.c: fix memory error in date parsing
This commit is contained in:
@ -323,7 +323,7 @@ mu_str_date_parse_hdwmy (const char* str)
|
|||||||
if (num <= 0 || num > 9999)
|
if (num <= 0 || num > 9999)
|
||||||
return never;
|
return never;
|
||||||
|
|
||||||
if (!end || end[1] != '\0')
|
if (end == NULL || *end != '\0')
|
||||||
return never;
|
return never;
|
||||||
|
|
||||||
switch (end[0]) {
|
switch (end[0]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user