aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-07-25 15:17:03 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:54 +0100
commit034b20d9356d108bd8d7e8a9f874120b9600cad2 (patch)
treebc8be5323fc4e515975367416f0f48eb02e01927
parent0c2f7515fb4cabfc76b6f3c7286db7a861fe7af2 (diff)
indexamajig: Fix uninitialised things
-rw-r--r--src/indexamajig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 5df08ad3..45ff3b72 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -165,6 +165,9 @@ static struct image *get_simage(struct image *template, int alternate)
image->twotheta = NULL;
image->data = NULL;
image->det = template->det;
+ image->flags = NULL;
+ image->f0_available = 0;
+ image->f0 = 1.0;
/* View head-on (unit cell is tilted) */
image->orientation.w = 1.0;