aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-10 16:06:51 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:25 +0100
commit334836244eca7cdca509815e0496f64fc5b9317a (patch)
tree895959358920aa02708acdd1e65056180322db94
parentedc3b1bda229d2516f19bcd697b6f2f89e258ecf (diff)
Correct handling of scalability list
-rw-r--r--src/geometry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geometry.c b/src/geometry.c
index 07c49ecc..f58f21e1 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -318,7 +318,7 @@ static void select_scalable_reflections(RefList *list, ReflItemList *sc_l)
get_indices(refl, &h, &k, &l); /* Should already be
* asymmetric */
- if ( !find_item(sc_l, h, k, l) ) {
+ if ( (sc_l != NULL) && (!find_item(sc_l, h, k, l)) ) {
add_item(sc_l, h, k, l);
}