diff options
author | Thomas White <taw@physics.org> | 2012-01-16 16:52:24 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:43 +0100 |
commit | 26d0823dccd4767dd287505f5d6a2ce71581a5f2 (patch) | |
tree | 2198aeed304fbbd212b4de1b4aec8d37a4f794dc /libcrystfel/src | |
parent | b7480dcea7fc188b814b26f20a3f0939f7715a74 (diff) |
Avoid using uninitialised peak parameters (if integration failed)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/peaks.c | 2 |
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 ) { |