diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/reflist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/reflist.c b/libcrystfel/src/reflist.c index 6435e056..629b083c 100644 --- a/libcrystfel/src/reflist.c +++ b/libcrystfel/src/reflist.c @@ -127,6 +127,7 @@ static Reflection *new_node(unsigned int serial) Reflection *new; new = calloc(1, sizeof(struct _reflection)); + if ( new == NULL ) return NULL; new->serial = serial; new->next = NULL; new->prev = NULL; |