aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-12 16:30:49 +0200
committerThomas White <taw@physics.org>2019-09-12 16:31:28 +0200
commit5fb35ec5261959bc173d3eb1d3d15630933e7fad (patch)
tree8167d1de8e75ed29625d0c8e7a2d053cf9a3c590 /libcrystfel
parent38b7ef6b854c199c5c74e8d8c4e4214469a7877e (diff)
Fix possibly uninitialised overlap_integral
Introduced by b6af09d78d49d552a05b81bd20a7854a180373f5
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/geometry.c2
1 files changed, 1 insertions, 1 deletions
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,