aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-11-30 17:30:49 +0100
committerThomas White <taw@physics.org>2012-11-30 17:31:36 +0100
commitb5cffa9536b8927bf4482a50e190fdcb525d0e8d (patch)
tree83e1d4b32f581eb5b9b3ad659497adf5469acc6f /libcrystfel/src
parent172ec11656529c5fedcb6b8bce21652c75fd46af (diff)
Fix uninitialised saturation flag
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 6bf956e2..236c0c52 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -236,6 +236,8 @@ static int integrate_peak(struct image *image, int cfs, int css,
if ( p == NULL ) return 1;
if ( p->no_index ) return 1;
+ *saturated = 0;
+
/* Determine regions where there is expected to be a peak */
p_cfs = cfs - p->min_fs;
p_css = css - p->min_ss; /* Panel-relative coordinates */