diff options
Diffstat (limited to 'src/journal.cc')
-rw-r--r-- | src/journal.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal.cc b/src/journal.cc index 31557635..3a4ada47 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -201,7 +201,8 @@ std::size_t journal_t::read(const path& pathname, ifstream stream(filename); std::size_t count = read(stream, filename, master, scope); - sources.push_back(fileinfo_t(filename)); + if (count > 0) + sources.push_back(fileinfo_t(filename)); return count; } |