top: Fix double-fclose() in configs_read().

It happens only if RCFILE_NOERR is defined (it is not, by default).
This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent 8476e6f4f9
commit e877d4f4c4

View File

@ -3884,7 +3884,6 @@ default_or_error:
#ifdef RCFILE_NOERR #ifdef RCFILE_NOERR
{ RCF_t rcdef = DEF_RCFILE; { RCF_t rcdef = DEF_RCFILE;
int i; int i;
fclose(fp);
Rc = rcdef; Rc = rcdef;
for (i = 0 ; i < GROUPSMAX; i++) for (i = 0 ; i < GROUPSMAX; i++)
Winstk[i].rc = Rc.win[i]; Winstk[i].rc = Rc.win[i];