From 5fb35ec5261959bc173d3eb1d3d15630933e7fad Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 12 Sep 2019 16:30:49 +0200 Subject: Fix possibly uninitialised overlap_integral Introduced by b6af09d78d49d552a05b81bd20a7854a180373f5 --- libcrystfel/src/geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/geometry.c') diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index fa896cd0..5b2107d1 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -348,7 +348,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, if ( exponent > -700.0 ) { overlap_integral = exp(exponent) * sqrt(2*M_PI*R*R) / sqrt(2*M_PI*sigma2); } else { - exponent = 0.0; + overlap_integral = 0.0; } mean_variance(kpred, g.area*overlap_integral, -- cgit v1.2.3