LogInit: initialize out_fd properly to avoid closing stdin

This commit is contained in:
Max Kellermann 2016-12-04 20:13:37 +01:00
parent 7019f6bea4
commit 301abac0c1

View File

@ -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)