summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-07-25 20:56:55 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:16 -0400
commit312f0c27e397d3138e582818d05c21e9f999c9fe (patch)
tree4d6acdb7b1311d402c24941f8a2834bb69df7196
parentb1b79de6d458fb31241142bc820ce855c9163f7d (diff)
downloadfork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.tar.gz
fork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.tar.bz2
fork-ledger-312f0c27e397d3138e582818d05c21e9f999c9fe.zip
(operator): Rearranged some code and added an assert.
-rw-r--r--walk.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/walk.cc b/walk.cc
index 0b5ec4d8..d80a0397 100644
--- a/walk.cc
+++ b/walk.cc
@@ -109,10 +109,7 @@ void truncate_entries::flush()
void set_account_value::operator()(transaction_t& xact)
{
- account_t * acct = xact_account(xact);
- assert(acct);
-
- account_xdata_t& xdata = account_xdata(*acct);
+ account_xdata_t& xdata = account_xdata(*xact.account);
add_transaction_to(xact, xdata.value);
xdata.count++;