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); }