summaryrefslogtreecommitdiff
path: root/rts/ProfHeap.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/ProfHeap.c')
-rw-r--r--rts/ProfHeap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c
index 0e3848d616..d9e66d76d1 100644
--- a/rts/ProfHeap.c
+++ b/rts/ProfHeap.c
@@ -377,6 +377,7 @@ nextEra( void )
n_censuses *= 2;
censuses = stgReallocBytes(censuses, sizeof(Census) * n_censuses,
"nextEra");
+ memset(&censuses[era], 0, sizeof(Census) * n_censuses / 2);
}
}
#endif /* PROFILING */