aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-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) )