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:37 +0000 (21:34 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 11 Nov 2002 21:34:37 +0000 (21:34 +0000)
initial value.  For errline/errorline, we did depend on that, erroneously

apps/req.c
apps/x509.c

index 11c4e5f03fa69d2ac2d95e7418cba44c1e28b7bc..f9253452a7738deb1f47e8d4d07dc05fdc0cdc3c 100644 (file)
@@ -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);
index 5b3ef9584d9688afd05c8f74b9aefa26eb8963ec..7dfbfbfee90b9fff18a051a0b0046b66576df5d3 100644 (file)
@@ -447,7 +447,7 @@ bad:
 
        if (extfile)
                {
-               long errorline;
+               long errorline = -1;
                X509V3_CTX ctx2;
                if (!(extconf=CONF_load(NULL,extfile,&errorline)))
                        {