From fada7a7af3260cecf21ffde77cb237c075c61e0b Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Wed, 1 Jul 2020 02:01:04 +0100 Subject: [PATCH] Tweaks. --- log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/log.c b/log.c index 38e9ec3..e5b3885 100644 --- a/log.c +++ b/log.c @@ -18,5 +18,6 @@ void logLine(char* string) void endLog() { + if (!file) return; fclose(file); }