aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-07-02 23:21:40 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:31 +0100
commit9bc1d2a91ab59f63355c38380c0eb64c826ba594 (patch)
tree66a14d33408b4f6e4c9bebaa86c1fd3680df0c3a
parent47ba16fe47a0f4802d9744b3886e650fc3ae6fa7 (diff)
Check for NULL
-rw-r--r--src/reflist.c1
1 files changed, 1 insertions, 0 deletions
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 ) {