From 3d9e2ac8c606c4fcf37ddd49a1be4712851bc21e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 23 Nov 2010 11:28:14 +0100 Subject: facetron: Zero the counts array as well, before re-estimating --- src/facetron.c | 1 + 1 file changed, 1 insertion(+) 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