Commit 301abac0 authored by Max Kellermann's avatar Max Kellermann

LogInit: initialize out_fd properly to avoid closing stdin

parent 7019f6be
......@@ -51,7 +51,7 @@ static constexpr Domain log_domain("log");
#ifndef ANDROID
static int out_fd;
static int out_fd = -1;
static AllocatedPath out_path = AllocatedPath::Null();
static void redirect_logs(int 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