From 7446ea01ec45faa55ac857569d9838b15cc15342 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 19 Feb 1997 06:53:48 +0000 Subject: [PATCH] zero struct tm --- lib/rfc1123.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 == ' ') -- 2.47.2