Commit eb5208c4 authored by Avuton Olrich's avatar Avuton Olrich

log: /dev/null doesn't exist on win32.

parent d88c3c84
......@@ -272,8 +272,10 @@ void setup_log_output(bool use_stdout)
{
fflush(NULL);
if (!use_stdout) {
#ifndef WIN32
if (out_filename == NULL)
out_fd = open("/dev/null", O_WRONLY);
#endif
if (out_fd >= 0) {
redirect_logs(out_fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment