aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-02-20 12:00:05 +0100
committerThomas White <taw@physics.org>2015-02-20 12:00:05 +0100
commitad6679f1b39e3838c842aacb85c659a02cb7f5c1 (patch)
tree547a0123bdf212d17e149e882784bdd4e2856a79 /libcrystfel/src
parenta02de84f62b98dda371f0c5003782705e9a0588e (diff)
copy_geom(): Initialise rg collection stuff
Otherwise, the later code adds the new RGs to a shallow copy of the old list (i.e. just a copy of the pointer). Hilarity ensues.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index e5279f1d..3dc5c7aa 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1710,6 +1710,8 @@ struct detector *copy_geom(const struct detector *in)
out->n_rigid_groups = 0;
out->rigid_groups = NULL;
+ out->n_rg_collections = 0;
+ out->rigid_group_collections = NULL;
for ( i=0; i<out->n_panels; i++ ) {