From 721532d4b3b9227e33cdb7b565b4861db67120b8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 14 Nov 2014 17:30:05 +0100 Subject: Ensure initialisation of as,bs,cs This is mostly just to shut the compiler up about the lack of initialisation. --- libcrystfel/src/stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel/src') 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"); -- cgit v1.2.3