LogInit: initialize out_fd properly to avoid closing stdin
This commit is contained in:
parent
7019f6bea4
commit
301abac0c1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user