diff options
author | Thomas White <taw@physics.org> | 2020-05-20 16:44:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 58ecefd9b5c066a047cd3b4b464c3ee3f9c25cc2 (patch) | |
tree | b8a4b0e9384fe7f6bd18fa652499839089d31613 /libcrystfel | |
parent | 398cd84f18a0f08d12055cd9f71caef5bae68d47 (diff) |
initialize_filename_plus_event: Check for NULL
Diffstat (limited to 'libcrystfel')
-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; |