diff options
author | John Wiegley <johnw@newartisans.com> | 2005-10-25 05:29:51 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:20 -0400 |
commit | ef93067227823cbb9d0eb5bda67dd97d5a34771d (patch) | |
tree | 15730f4f1a6bd99c3c4d8f3d8f40d13a3fa32b0e | |
parent | b18977e51fbe87264ae9b3b8e5ef0bfa567c3016 (diff) | |
download | fork-ledger-ef93067227823cbb9d0eb5bda67dd97d5a34771d.tar.gz fork-ledger-ef93067227823cbb9d0eb5bda67dd97d5a34771d.tar.bz2 fork-ledger-ef93067227823cbb9d0eb5bda67dd97d5a34771d.zip |
(class entry_base_t): Initialize the `journal' pointer to NULL on
object creation.
-rw-r--r-- | journal.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |