aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-07-26 16:23:17 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commit9677bc525b41a133ca611b60a383dab58b0ea5f9 (patch)
treecfaf51924ba0ab39bc046812b2b96f620cfa86e1 /libcrystfel/src/datatemplate.c
parent975ed3e8b0d44d053dda10bfc6a20389a31bbbd4 (diff)
Initialise det->top_group
Diffstat (limited to 'libcrystfel/src/datatemplate.c')
-rw-r--r--libcrystfel/src/datatemplate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c
index 12d4d85f..26d0bd06 100644
--- a/libcrystfel/src/datatemplate.c
+++ b/libcrystfel/src/datatemplate.c
@@ -1912,6 +1912,8 @@ struct detgeom *create_detgeom(struct image *image,
detgeom = malloc(sizeof(struct detgeom));
if ( detgeom == NULL ) return NULL;
+ detgeom->top_group = NULL;
+
detgeom->panels = malloc(dtempl->n_panels*sizeof(struct detgeom_panel));
if ( detgeom->panels == NULL ) {
free(detgeom);