summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-11 21:34:37 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-11 21:34:37 +0000
commit3baca7eedd75bcca2b1b3a1729e2db7b0840cbe6 (patch)
treeb8a626dcfe711057b1d9dfaf6e693f205caeba39 /apps
parent1dc179b4f4ea51d120aa3fcc813192dd623ca79c (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 11c4e5f03f..f9253452a7 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -422,7 +422,7 @@ bad:
if (template != NULL)
{
- long errline;
+ long errline = -1;
BIO_printf(bio_err,"Using configuration from %s\n",template);
req_conf=CONF_load(NULL,template,&errline);
diff --git a/apps/x509.c b/apps/x509.c
index 5b3ef9584d..7dfbfbfee9 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -447,7 +447,7 @@ bad:
if (extfile)
{
- long errorline;
+ long errorline = -1;
X509V3_CTX ctx2;
if (!(extconf=CONF_load(NULL,extfile,&errorline)))
{