diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-19 22:28:00 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-19 22:28:00 -0500 |
commit | 79ecbf0c176215349efa458dadffa770c3decebc (patch) | |
tree | 1ec8bbd0ef1b75b93ef52cd3f89f60df6f33c08c /src/account.h | |
parent | ceb8dd89a6740c218d17ed01dbe5a7e8a37be2f0 (diff) | |
download | fork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.tar.gz fork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.tar.bz2 fork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.zip |
Corrected an uninitialized memory bug
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/account.h b/src/account.h index fee12595..fd98a9ac 100644 --- a/src/account.h +++ b/src/account.h @@ -193,7 +193,17 @@ public: TRACE_CTOR(account_t::xdata_t::details_t, ""); } // A copy copies nothing - details_t(const details_t&) { + details_t(const details_t&) + : calculated(false), + gathered(false), + + posts_count(0), + posts_virtuals_count(0), + posts_cleared_count(0), + posts_last_7_count(0), + posts_last_30_count(0), + posts_this_month_count(0) + { TRACE_CTOR(account_t::xdata_t::details_t, "copy"); } ~details_t() throw() { |