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
This commit is contained in:
Richard Levitte 2002-11-11 21:34:37 +00:00
parent 1dc179b4f4
commit 3baca7eedd
2 changed files with 2 additions and 2 deletions

View file

@ -422,7 +422,7 @@ bad:
if (template != NULL) if (template != NULL)
{ {
long errline; long errline = -1;
BIO_printf(bio_err,"Using configuration from %s\n",template); BIO_printf(bio_err,"Using configuration from %s\n",template);
req_conf=CONF_load(NULL,template,&errline); req_conf=CONF_load(NULL,template,&errline);

View file

@ -447,7 +447,7 @@ bad:
if (extfile) if (extfile)
{ {
long errorline; long errorline = -1;
X509V3_CTX ctx2; X509V3_CTX ctx2;
if (!(extconf=CONF_load(NULL,extfile,&errorline))) if (!(extconf=CONF_load(NULL,extfile,&errorline)))
{ {