diff options
author | Thomas White <taw@physics.org> | 2014-11-14 17:30:05 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-14 17:30:05 +0100 |
commit | 721532d4b3b9227e33cdb7b565b4861db67120b8 (patch) | |
tree | f51d2ff80885d26fe63bcf619ed75601d0886aa5 /libcrystfel | |
parent | 9169781d25463b89bf7fdfb7b7c0c74f8a39a713 (diff) |
Ensure initialisation of as,bs,cs
This is mostly just to shut the compiler up about the lack of initialisation.
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 4 |
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"); |