From ef93067227823cbb9d0eb5bda67dd97d5a34771d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 25 Oct 2005 05:29:51 +0000 Subject: (class entry_base_t): Initialize the `journal' pointer to NULL on object creation. --- journal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/journal.h b/journal.h index a0416079..d340c321 100644 --- a/journal.h +++ b/journal.h @@ -109,10 +109,10 @@ class entry_base_t unsigned long end_line; transactions_list transactions; - entry_base_t() { + entry_base_t() : journal(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t"); } - entry_base_t(const entry_base_t& e) { + entry_base_t(const entry_base_t& e) : journal(NULL) { DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t"); for (transactions_list::const_iterator i = e.transactions.begin(); i != e.transactions.end(); -- cgit v1.2.3