diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdtime/strptime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index 21a47f7..becdd95 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -522,6 +522,7 @@ strptime(const char * __restrict buf, const char * __restrict fmt, int gmt; gmt = 0; + memset((void*)tm, 0, sizeof(struct tm)); ret = _strptime(buf, fmt, tm, &gmt); if (ret) { t = gmt ? timegm(tm) : mktime(tm); |