diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-27 18:08:48 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-27 18:08:48 -0400 |
commit | ba2c04072c2f6b1fc50dc8ff3a41098ea6e634e6 (patch) | |
tree | f32580aa14d2628f3fc27e663f8778c30632ca34 /walk.h | |
parent | eb6861e192281b612e115c8b3bf240e574bca835 (diff) | |
download | fork-ledger-ba2c04072c2f6b1fc50dc8ff3a41098ea6e634e6.tar.gz fork-ledger-ba2c04072c2f6b1fc50dc8ff3a41098ea6e634e6.tar.bz2 fork-ledger-ba2c04072c2f6b1fc50dc8ff3a41098ea6e634e6.zip |
fixed several segfaults (using new option-scrambler test harness)
Diffstat (limited to 'walk.h')
-rw-r--r-- | walk.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -306,8 +306,10 @@ class changed_value_transactions : public item_handler<transaction_t> changed_values_only(_changed_values_only), last_xact(NULL) {} virtual void flush() { - output_diff(std::time(NULL)); - last_xact = NULL; + if (last_xact) { + output_diff(std::time(NULL)); + last_xact = NULL; + } item_handler<transaction_t>::flush(); } |