aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-01-16 16:52:24 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:43 +0100
commit26d0823dccd4767dd287505f5d6a2ce71581a5f2 (patch)
tree2198aeed304fbbd212b4de1b4aec8d37a4f794dc /libcrystfel
parentb7480dcea7fc188b814b26f20a3f0939f7715a74 (diff)
Avoid using uninitialised peak parameters (if integration failed)
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 025cde12..1ce02a52 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -610,7 +610,7 @@ void integrate_reflections(struct image *image, int polar, int use_closer,
bgsub);
/* I/sigma(I) cutoff */
- if ( intensity/sigma < min_snr ) r = 1;
+ if ( !r && (intensity/sigma < min_snr) ) r = 1;
/* Record intensity and set redundancy to 1 on success */
if ( r == 0 ) {