diff options
author | Evan Martin <martine@danga.com> | 2011-05-12 21:01:52 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-05-12 21:01:52 (GMT) |
commit | e2543e423499f2d9619941e33276ae1240fb2b91 (patch) | |
tree | c38b694502c4ad2ddd3242ba4295a984c0dee04e | |
parent | f2e57ebbb3e4bb40f837252707e129734a104f55 (diff) | |
download | Ninja-e2543e423499f2d9619941e33276ae1240fb2b91.zip Ninja-e2543e423499f2d9619941e33276ae1240fb2b91.tar.gz Ninja-e2543e423499f2d9619941e33276ae1240fb2b91.tar.bz2 |
refix recompaction
Like all untested quick fixes, my previous quick fix actually introduced
a reliable segfault.
-rw-r--r-- | src/build_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index 2050ffc..2a99cb4 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -206,7 +206,7 @@ bool BuildLog::Recompact(const string& path, string* err) { return false; } - if (fwrite(kFileSignature, sizeof(kFileSignature) - 1, 1, log_file_) < 1) { + if (fwrite(kFileSignature, sizeof(kFileSignature) - 1, 1, f) < 1) { *err = strerror(errno); return false; } |