Variables on the stack must be initialized or we can't depend on any
authorRichard Levitte <levitte@openssl.org>
Mon, 11 Nov 2002 21:34:21 +0000 (21:34 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 11 Nov 2002 21:34:21 +0000 (21:34 +0000)
initial value.  For errline/errorline, we did depend on that, erroneously

apps/req.c
apps/x509.c

index 729cb2d..6beeef0 100644 (file)
@@ -542,7 +542,7 @@ bad:
 
        if (template != NULL)
                {
-               long errline;
+               long errline = -1;
 
                if( verbose )
                        BIO_printf(bio_err,"Using configuration from %s\n",template);
index 12b269f..8e4462d 100644 (file)
@@ -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))