summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/walk.cc b/walk.cc
index 908618b5..8b9f3874 100644
--- a/walk.cc
+++ b/walk.cc
@@ -90,12 +90,11 @@ void changed_value_transactions::operator()(transaction_t * xact)
if (balance_t diff = cur_bal - prev_bal) {
entry_t * entry = new entry_t;
+ entry_temps.push_back(entry);
entry->payee = "Commodities revalued";
entry->date = current;
- entry_temps.push_back(entry);
-
for (amounts_map::const_iterator i = diff.amounts.begin();
i != diff.amounts.end();
i++) {
@@ -138,10 +137,10 @@ void subtotal_transactions::flush(const char * spec_fmt)
}
entry_t * entry = new entry_t;
- entry->payee = buf;
-
entry_temps.push_back(entry);
+ entry->payee = buf;
+
for (balances_map::iterator i = balances.begin();
i != balances.end();
i++) {