summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-28 22:13:58 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:28 -0400
commitcf773a5a1213e7f2c3be7f0e435710b7666a6beb (patch)
tree02efa07ba8c77cbe714305564239f4a8e90b0f9a /binary.cc
parent0c55a5ee1b5b35f399de7286cd8c6565a61e9634 (diff)
downloadfork-ledger-cf773a5a1213e7f2c3be7f0e435710b7666a6beb.tar.gz
fork-ledger-cf773a5a1213e7f2c3be7f0e435710b7666a6beb.tar.bz2
fork-ledger-cf773a5a1213e7f2c3be7f0e435710b7666a6beb.zip
*** empty log message ***
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/binary.cc b/binary.cc
index cc62d65b..33dd2240 100644
--- a/binary.cc
+++ b/binary.cc
@@ -557,8 +557,10 @@ unsigned int read_binary_journal(std::istream& in,
account_t::ident_t a_count = read_binary_long<account_t::ident_t>(data);
accounts = accounts_next = new account_t *[a_count];
- delete journal->master;
+
+ assert(journal->master); delete journal->master;
journal->master = read_binary_account(data, journal, master);
+
if (read_binary_number<bool>(data))
journal->basket = accounts[read_binary_long<account_t::ident_t>(data) - 1];