From edb7b28a002118a7b3e9c4f45ab61e8bfc5cc5db Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 11 Nov 2002 21:35:00 +0000 Subject: [PATCH] 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 --- apps/req.c | 2 +- apps/x509.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.25.1