aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflist.c')
-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 ) {