summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevin Du <zslevin@gmail.com>2008-07-31 14:13:09 +0800
committerLevin Du <zslevin@gmail.com>2008-07-31 14:13:09 +0800
commit19fcf4c99d0647e19b75f5f95a23bfc9c15ebd61 (patch)
tree355b45775df4b1cd76941fbbedcad0bb2f8a5fe8
parentbffdc6431d86a3f483c1fc2708526cae28d39f4b (diff)
downloadfork-ledger-19fcf4c99d0647e19b75f5f95a23bfc9c15ebd61.tar.gz
fork-ledger-19fcf4c99d0647e19b75f5f95a23bfc9c15ebd61.tar.bz2
fork-ledger-19fcf4c99d0647e19b75f5f95a23bfc9c15ebd61.zip
fix balance error if read from stdin
This is introduce by c93175183e790cf7f1100dfd554197161a69e6fe
-rw-r--r--parser.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/parser.cc b/parser.cc
index c96f2435..debe5558 100644
--- a/parser.cc
+++ b/parser.cc
@@ -182,11 +182,10 @@ unsigned int parse_ledger_data(config_t& config,
journal, acct);
if (! journal->price_db.empty())
journal->sources.push_back(journal->price_db);
-
- // Clear out what was set during the textual parsing phase
- clear_account_xdata acct_cleaner;
- walk_accounts(*journal->master, acct_cleaner);
}
+ // Clear out what was set during the textual parsing phase
+ clear_account_xdata acct_cleaner;
+ walk_accounts(*journal->master, acct_cleaner);
}
VALIDATE(journal->valid());