From 03f41d567dafea7b4fa8c258c92fb57be7e684ae Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Sat, 9 Mar 2019 10:52:59 -0500 Subject: [PATCH] Set InFile to NULL after closing it --- src/inpfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inpfile.c b/src/inpfile.c index 59f09d0..8ce02dc 100644 --- a/src/inpfile.c +++ b/src/inpfile.c @@ -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)