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

apps/req.c
apps/x509.c

index a3c1e0b4c47bcb8d8370206ff0189a76387e565c..89ff075d88ca424ce55d3b1de3286edcf31a1819 100644 (file)
@@ -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);
index 0e364e35389776be5b29d620cc4713a84ee56dbc..d5e4f9e63d6e8aa9b4bc3050bd6db63ad3f6ca26 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))