summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-06 02:07:56 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-06 02:07:56 -0500
commit05d0f1a17f9f4a9d659274d91dfb164055453637 (patch)
treeece58237ae3883aba0153ce32465acde09b2b4b5 /src/journal.cc
parent61f7d1295fb427f75861e37856c3e403f7f98f39 (diff)
downloadfork-ledger-05d0f1a17f9f4a9d659274d91dfb164055453637.tar.gz
fork-ledger-05d0f1a17f9f4a9d659274d91dfb164055453637.tar.bz2
fork-ledger-05d0f1a17f9f4a9d659274d91dfb164055453637.zip
The binary cache is working again
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc3
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;
}