aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 478bb2d1..3efa2954 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -334,9 +334,9 @@ static double get_length(struct image *image, const char *from)
units = 1.0e-3;
} else {
units = unit_string_to_unit(sp+1);
+ sp[0] = '\0';
}
- sp[0] = '\0';
val = get_value(image, fromcpy);
free(fromcpy);