Prevent double fclose
This commit is contained in:
parent
4556d261d8
commit
ee2c7069e4
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,6 @@ main(argc,argv) register string argv[]; {
|
||||||
setinit(ntneeded);
|
setinit(ntneeded);
|
||||||
maxnt = &nonterms[nnonterms];
|
maxnt = &nonterms[nnonterms];
|
||||||
maxt = &tokens[ntokens];
|
maxt = &tokens[ntokens];
|
||||||
fclose(fact);
|
|
||||||
/*
|
/*
|
||||||
* Now, the grammar is read. Do some computations
|
* Now, the grammar is read. Do some computations
|
||||||
*/
|
*/
|
||||||
|
@ -198,6 +197,7 @@ main(argc,argv) register string argv[]; {
|
||||||
stderr);
|
stderr);
|
||||||
}
|
}
|
||||||
else gencode(argc);
|
else gencode(argc);
|
||||||
|
fclose(fact);
|
||||||
UNLINK(f_temp);
|
UNLINK(f_temp);
|
||||||
UNLINK(f_pars);
|
UNLINK(f_pars);
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue