summaryrefslogtreecommitdiff
path: root/os/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/log.c')
-rw-r--r--os/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/log.c b/os/log.c
index 671a01bb6..8c102bbb1 100644
--- a/os/log.c
+++ b/os/log.c
@@ -203,6 +203,8 @@ LogInit(const char *fname, const char *backup)
}
free(oldLog);
}
+ } else {
+ unlink(logFileName);
}
if ((logFile = fopen(logFileName, "w")) == NULL)
FatalError("Cannot open log file \"%s\"\n", logFileName);