summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/walk.h b/walk.h
index 39a220be..0ac9e133 100644
--- a/walk.h
+++ b/walk.h
@@ -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();
}