Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-12 00:35:00 +0300
committerRichard Levitte <levitte@openssl.org>2002-11-12 00:35:00 +0300
commitedb7b28a002118a7b3e9c4f45ab61e8bfc5cc5db (patch)
treece0fa19e0ec3f318cdf484f970b200106b5ca8cb /apps
parentc4efde740398e7e9e1ba04dcd794e480461f0180 (diff)
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
Diffstat (limited to 'apps')
-rw-r--r--apps/req.c2
-rw-r--r--apps/x509.c2
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))