diff options
author | Thomas White <taw@physics.org> | 2020-02-21 17:03:20 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:39:50 +0200 |
commit | df26cc5f1ee86606ccaf7fd3a0fe502b717b90f8 (patch) | |
tree | 785c563b6c7f9a3a488650e8308cddee049fd1df /libcrystfel | |
parent | 8c63113ccd59c3b5498cbd68800c29536a52092d (diff) |
get_event_from_event_string: Handle NULL event
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 491f7811..c194d369 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -336,6 +336,8 @@ struct event *get_event_from_event_string(const char *ev_string) char *sep; char *start; + if ( ev_string == NULL ) return NULL; + ev_sep = strstr(ev_string, "//"); if ( ev_sep == NULL ) return NULL; |