1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

call fclose(infile) after print_progress()

The function print_progress uses the pointer infile.
If fclose is called before print_progress then the build process
can fail to build the files:
  doc/C/cde.dti/CDEDOC/dtsearch/CDEDOC.d99
  doc/C/cde.dti/CDEDOC/dtsearch/dtsearch.ocf
  doc/C/cde.dti/cde.oli
To fix the issue move the call fclose(infile) after print_progress()
This commit is contained in:
Giacomo Comes 2016-06-07 10:31:28 -04:00 committed by Jon Trulson
parent a650c6214e
commit 542fce33d4

View file

@ -1263,9 +1263,9 @@ int main (int argc, char *argv[])
} /* end main record loop */ } /* end main record loop */
fclose (infile);
if (need_final_progress_msg) if (need_final_progress_msg)
print_progress (); print_progress ();
fclose (infile);
write_dbrec (); write_dbrec ();
/* If all input records were discarded, complete processing /* If all input records were discarded, complete processing