(mu_parse_date): Initialize struct tm
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -1052,6 +1052,7 @@ mu_parse_date (const char *p, time_t *rettime, const time_t *now) | ... | @@ -1052,6 +1052,7 @@ mu_parse_date (const char *p, time_t *rettime, const time_t *now) |
1052 | if (!tmp) | 1052 | if (!tmp) |
1053 | return -1; | 1053 | return -1; |
1054 | 1054 | ||
1055 | memset (&tm, 0, sizeof tm); | ||
1055 | tm.tm_isdst = tmp->tm_isdst; | 1056 | tm.tm_isdst = tmp->tm_isdst; |
1056 | 1057 | ||
1057 | if (yyparse ()) | 1058 | if (yyparse ()) | ... | ... |
-
Please register or sign in to post a comment