aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-23 11:28:14 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:07 +0100
commit3d9e2ac8c606c4fcf37ddd49a1be4712851bc21e (patch)
treee6d8e93686e33614de1938063bcf040885be2d43 /src
parent24746060a47d220c016f34e3598665817e3d407d (diff)
facetron: Zero the counts array as well, before re-estimating
Diffstat (limited to 'src')
-rw-r--r--src/facetron.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/facetron.c b/src/facetron.c
index 78a4b72b..0a52d784 100644
--- a/src/facetron.c
+++ b/src/facetron.c
@@ -257,6 +257,7 @@ static void estimate_full(struct image *images, int n_total_patterns,
clear_items(obs);
memset(i_full, 0, LIST_SIZE*sizeof(double));
+ memset(cts, 0, LIST_SIZE*sizeof(unsigned int));
tasks = malloc(n_total_patterns * sizeof(struct integrate_args));
for ( i=0; i<n_total_patterns; i++ ) {