From 993ee935cdb5aacb3485cceb0cdb264d7f8bd098 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Mon, 9 Sep 2013 15:35:56 -0700 Subject: -n fix initialization issue with tm.tm_sec in tm2unix, and be conservative about it in case future code uses other members --- openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl.c b/openssl.c index 1c9161a..5fda60d 100644 --- a/openssl.c +++ b/openssl.c @@ -1835,7 +1835,7 @@ static _Bool scan(int *i, char **cp, int n, int signok) { static double timeutc(ASN1_TIME *time) { char buf[32] = "", *cp; - struct tm tm; + struct tm tm = { 0 }; int gmtoff = 0, year, i; double ts; -- cgit v1.2.3-59-g8ed1b