projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e57eb
)
refix recompaction
author
Evan Martin
<martine@danga.com>
Thu, 12 May 2011 21:01:52 +0000
(14:01 -0700)
committer
Evan Martin
<martine@danga.com>
Thu, 12 May 2011 21:01:52 +0000
(14:01 -0700)
Like all untested quick fixes, my previous quick fix actually introduced
a reliable segfault.
src/build_log.cc
patch
|
blob
|
history
diff --git
a/src/build_log.cc
b/src/build_log.cc
index 2050ffc3deacd9ec57f0f41d4c50613c91e5fbb0..2a99cb4bbc158d344ad13c9cb58f9000ddeccf95 100644
(file)
--- 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;
}