summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'format.h')
-rw-r--r--format.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/format.h b/format.h
index f3bf671c..5f6518fd 100644
--- a/format.h
+++ b/format.h
@@ -115,9 +115,10 @@ class format_entries : public format_transactions
void format_last_entry();
virtual void flush() {
- format_last_entry();
- last_entry = NULL;
-
+ if (last_entry) {
+ format_last_entry();
+ last_entry = NULL;
+ }
format_transactions::flush();
}
virtual void operator()(transaction_t& xact);