diff options
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index c8b6ba9d..3e23fe65 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -70,10 +70,10 @@ struct event_list *initialize_event_list() struct filename_plus_event *initialize_filename_plus_event() { - struct filename_plus_event *fpe; fpe = malloc(sizeof(struct filename_plus_event)); + if ( fpe == NULL ) return NULL; fpe->filename = NULL; fpe->ev = NULL; |