summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/console.c b/console.c
index 84bb97bcd..e82cf23c0 100644
--- a/console.c
+++ b/console.c
@@ -284,6 +284,7 @@ bool CloseConsoleLogIfActive(void)
if (_iconsole_output_file != NULL) {
IConsolePrintF(_iconsole_color_default, "file output complete");
fclose(_iconsole_output_file);
+ _iconsole_output_file = NULL;
return true;
}