From c006a3f7d88b9eb6e1f119ff16ce70ed5f5c5da2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 7 Sep 2021 16:28:59 +0200 Subject: get_equiv: Bail out on error path Error handling is sloppy here. --- libcrystfel/src/symmetry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c index b11db684..f641a850 100644 --- a/libcrystfel/src/symmetry.c +++ b/libcrystfel/src/symmetry.c @@ -1142,7 +1142,10 @@ void get_equiv(const SymOpList *ops, const SymOpMask *m, int idx, { IntegerMatrix *op; op = get_symop(ops, m, idx); - if ( op == NULL ) return; + if ( op == NULL ) { + fprintf(stderr, "Cannot proceed.\n"); + abort(); + } do_op(op, h, k, l, he, ke, le); } -- cgit v1.2.3