diff options
Diffstat (limited to 'src/build_log.cc')
-rw-r--r-- | src/build_log.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index 04409c8..4dcd6ce 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -183,7 +183,7 @@ void BuildLog::Close() { } bool BuildLog::OpenForWriteIfNeeded() { - if (log_file_path_.empty()) { + if (log_file_ || log_file_path_.empty()) { return true; } log_file_ = fopen(log_file_path_.c_str(), "ab"); @@ -204,7 +204,6 @@ bool BuildLog::OpenForWriteIfNeeded() { return false; } } - log_file_path_.clear(); return true; } |