From 9bc1d2a91ab59f63355c38380c0eb64c826ba594 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 2 Jul 2011 23:21:40 +0200 Subject: Check for NULL --- src/reflist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reflist.c b/src/reflist.c index 2db76914..a8bfb4f6 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -710,6 +710,7 @@ Reflection *add_refl(RefList *list, signed int h, signed int k, signed int l) assert(abs(l)<256); new = new_node(SERIAL(h, k, l)); + if ( new == NULL ) return NULL; f = find_refl(list, h, k, l); if ( f == NULL ) { -- cgit v1.2.3