aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index ec4ccfde..27b1abc1 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -732,6 +732,10 @@ static void read_crystal(Stream *st, struct image *image, StreamReadFlags srf)
int n;
Crystal **crystals_new;
+ as.u = 0.0; as.v = 0.0; as.w = 0.0;
+ bs.u = 0.0; bs.v = 0.0; bs.w = 0.0;
+ cs.u = 0.0; cs.v = 0.0; cs.w = 0.0;
+
cr = crystal_new();
if ( cr == NULL ) {
ERROR("Failed to allocate crystal!\n");