diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/deps_log.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index eb1ea2b..c52503b 100644 --- a/src/deps_log.cc +++ b/src/deps_log.cc @@ -159,7 +159,8 @@ bool DepsLog::Load(const string& path, State* state, string* err) { uint16_t size; if (fread(&size, 2, 1, f) < 1) { - read_failed = true; + if (!feof(f)) + read_failed = true; break; } bool is_deps = (size >> 15) != 0; |