diff --git a/src/LogInit.cxx b/src/LogInit.cxx index 117c6d8dc..3cd5da0a1 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -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)