diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2003-04-05 05:46:43 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-04-05 05:46:43 +0000 |
commit | f23f1498667173e43139c553cf68e9152f55e646 (patch) | |
tree | d962f3454fd9adcb261dc657468ff04170ae0fd4 | |
parent | 799d93559b7170dd46902339a20d0382c560cee2 (diff) |
Notes
-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 21a47f740e32..becdd951f7df 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); |