Set InFile to NULL after closing it

This commit is contained in:
Lew Rossman
2019-03-09 10:52:59 -05:00
parent e5ec4eecab
commit 03f41d567d

View File

@@ -7,7 +7,7 @@ Description: saves network data to an EPANET formatted text file
Authors: see AUTHORS
Copyright: see AUTHORS
License: see LICENSE
Last Updated: 03/08/2019
Last Updated: 03/09/2019
******************************************************************************
*/
@@ -113,6 +113,7 @@ void saveauxdata(Project *pr, FILE *f)
}
}
fclose(InFile);
InFile = NULL;
}
int saveinpfile(Project *pr, const char *fname)