From: wessels <> Date: Wed, 19 Feb 1997 06:53:48 +0000 (+0000) Subject: zero struct tm X-Git-Tag: SQUID_3_0_PRE1~5116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7446ea01ec45faa55ac857569d9838b15cc15342;p=thirdparty%2Fsquid.git zero struct tm --- diff --git a/lib/rfc1123.c b/lib/rfc1123.c index ef81841e1d..9a1b21e5f8 100644 --- a/lib/rfc1123.c +++ b/lib/rfc1123.c @@ -1,5 +1,5 @@ /* - * $Id: rfc1123.c,v 1.6 1996/11/14 19:02:11 wessels Exp $ + * $Id: rfc1123.c,v 1.7 1997/02/18 23:53:48 wessels Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -181,6 +181,7 @@ parse_rfc1123(const char *str) if (!str) return -1; + memset(&tm, '\0', sizeof(struct tm)); if ((s = strchr(str, ','))) { /* Thursday, 10-Jun-93 01:29:59 GMT */ s++; /* or: Thu, 10 Jan 1993 01:29:59 GMT */ while (*s && *s == ' ')