summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-19 22:28:00 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-19 22:28:00 -0500
commit79ecbf0c176215349efa458dadffa770c3decebc (patch)
tree1ec8bbd0ef1b75b93ef52cd3f89f60df6f33c08c
parentceb8dd89a6740c218d17ed01dbe5a7e8a37be2f0 (diff)
downloadfork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.tar.gz
fork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.tar.bz2
fork-ledger-79ecbf0c176215349efa458dadffa770c3decebc.zip
Corrected an uninitialized memory bug
-rw-r--r--src/account.h12
-rwxr-xr-xtest/fullcheck.sh5
2 files changed, 15 insertions, 2 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() {
diff --git a/test/fullcheck.sh b/test/fullcheck.sh
index db63921d..fc89a13c 100755
--- a/test/fullcheck.sh
+++ b/test/fullcheck.sh
@@ -2,7 +2,10 @@
VALGRIND=''
if [ -x /usr/bin/valgrind -o -x /opt/local/bin/valgrind ]; then
- VALGRIND="valgrind -q"
+ VALGRIND="valgrind -q --track-origins=yes"
+ if [ `uname` = "Darwin" ]; then
+ VALGRIND="$VALGRIND --dsymutil=yes"
+ fi
fi
#export MallocGuardEdges=1