summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-10-25 05:29:51 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:20 -0400
commitef93067227823cbb9d0eb5bda67dd97d5a34771d (patch)
tree15730f4f1a6bd99c3c4d8f3d8f40d13a3fa32b0e
parentb18977e51fbe87264ae9b3b8e5ef0bfa567c3016 (diff)
downloadfork-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.h4
1 files 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();