aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-01-13 17:29:31 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:43 +0100
commitb7480dcea7fc188b814b26f20a3f0939f7715a74 (patch)
treec26d698c495b56ec6c3a4deacd717e1d05a86391
parentdb285f5ff2a6d37f4ff73ecf72ae3a4fe1cdcf3f (diff)
Fix uninitialised values in (unimplemented) resolution range determination
-rw-r--r--libcrystfel/src/peaks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 4d6fb79e..025cde12 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -296,6 +296,9 @@ void estimate_resolution(RefList *list, UnitCell *cell,
Reflection *refl;
RefListIterator *iter;
+ *min = INFINITY;
+ *max = 0.0;
+
for ( refl = first_refl(list, &iter);
refl != NULL;
refl = next_refl(refl, iter) )