call fclose(infile) after print_progress()
authorGiacomo Comes <comes@naic.edu>
Tue, 7 Jun 2016 14:31:28 +0000 (10:31 -0400)
committerJon Trulson <jon@radscan.com>
Wed, 8 Jun 2016 02:00:11 +0000 (20:00 -0600)
commit542fce33d4f38053930d032ba7bf79691f0eb865
tree9b3d7e86d4c47faaabfc7dca65f7ac22f0b3af40
parenta650c6214e792b047efb4213f75b529e47868021
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()
cde/programs/dtsr/dtsrload.c