aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 2538526de..dc7628871 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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);