aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index fa4ae64f0..7701da3a5 100644
--- a/src/log.c
+++ b/src/log.c
@@ -175,6 +175,7 @@ void setup_log_output(const int use_stdout)
if (!use_stdout) {
redirect_logs();
stdout_mode = 0;
+ flushWarningLog();
}
redirect_stdin();
}