diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-26 05:06:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-26 05:06:06 -0400 |
commit | 162d982b0cf1a5ac2e67012a3b8eadae3c1ac59f (patch) | |
tree | 1d29680db03ab4f8a82f77630a6e1a9fc10571bb /walk.h | |
parent | 961b30926b3b9f2b3e9c1a99df3f25fea6b13118 (diff) | |
download | ledger-162d982b0cf1a5ac2e67012a3b8eadae3c1ac59f.tar.gz ledger-162d982b0cf1a5ac2e67012a3b8eadae3c1ac59f.tar.bz2 ledger-162d982b0cf1a5ac2e67012a3b8eadae3c1ac59f.zip |
The --verify option is now working properly again. Use "--verify --verbose"
if you wish to see memory usage statistics along with a top-level trace.
Diffstat (limited to 'walk.h')
-rw-r--r-- | walk.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -110,7 +110,6 @@ struct transaction_xdata_t : public noncopyable account(NULL), ptr(NULL), component_xacts(NULL) { TRACE_CTOR(transaction_xdata_t, ""); } - ~transaction_xdata_t() { TRACE_DTOR(transaction_xdata_t); if (component_xacts) @@ -154,9 +153,11 @@ transaction_xdata_t& transaction_xdata(const transaction_t& xact); void add_transaction_to(const transaction_t& xact, value_t& value); inline account_t * xact_account(transaction_t& xact) { - account_t * account = transaction_xdata(xact).account; - if (account) - return account; + if (xact.data) { + account_t * account = transaction_xdata(xact).account; + if (account) + return account; + } return xact.account; } |