From 7bac028af325feebe706072441cfc0e672ffca45 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 26 Jul 2011 18:02:43 +0200 Subject: Check for NULL value --- src/reflist-utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reflist-utils.c b/src/reflist-utils.c index a572faf7..3991600d 100644 --- a/src/reflist-utils.c +++ b/src/reflist-utils.c @@ -394,6 +394,7 @@ RefList *asymmetric_indices(RefList *in, const SymOpList *sym) RefList *new; new = reflist_new(); + if ( new == NULL ) return NULL; for ( refl = first_refl(in, &iter); refl != NULL; -- cgit v1.2.3