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