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 729cb2d5bd74f47bd9a1e8f69b4d6db93887b920..6beeef07a33df4e32df6e57b155ac8dc390cfba4 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 12b269f9ab70a29e4298f430f8dbc841d1d1ebac..8e4462dae765282310e234932452a0dc2344b37a 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))