From: Richard Levitte Date: Mon, 11 Nov 2002 21:35:00 +0000 (+0000) Subject: Variables on the stack must be initialized or we can't depend on any X-Git-Tag: OpenSSL_0_9_7-beta4~69 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=edb7b28a002118a7b3e9c4f45ab61e8bfc5cc5db;p=oweals%2Fopenssl.git Variables on the stack must be initialized or we can't depend on any initial value. For errline/errorline, we did depend on that, erroneously --- diff --git a/apps/req.c b/apps/req.c index a3c1e0b4c4..89ff075d88 100644 --- a/apps/req.c +++ b/apps/req.c @@ -485,7 +485,7 @@ bad: if (template != NULL) { - long errline; + long errline = -1; if( verbose ) BIO_printf(bio_err,"Using configuration from %s\n",template); diff --git a/apps/x509.c b/apps/x509.c index 0e364e3538..d5e4f9e63d 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -479,7 +479,7 @@ bad: if (extfile) { - long errorline; + long errorline = -1; X509V3_CTX ctx2; extconf = NCONF_new(NULL); if (!NCONF_load(extconf, extfile,&errorline))