From 9766fd900bbcfa6d78d99ba2a33a2027e4c7dfa2 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 12 Aug 1997 01:55:33 +0000 Subject: [PATCH] Zero tm git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2941 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/der_get.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/asn1/der_get.c b/lib/asn1/der_get.c index 532172dd3..f0d595f96 100644 --- a/lib/asn1/der_get.c +++ b/lib/asn1/der_get.c @@ -274,6 +274,7 @@ generalizedtime2time (char *s, time_t *t) { struct tm tm; + memset(&tm, 0, sizeof(tm)); sscanf (s, "%04d%02d%02d%02d%02d%02dZ", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec);