diff options
author | Thomas White <taw@physics.org> | 2020-03-20 16:21:08 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | b40cf018160d33675053b6f9e019745b1169871f (patch) | |
tree | dd5db3d75351953ff847ddbc08d685107aea5dd3 /libcrystfel | |
parent | 00495061efdad11a047549b2628089d61f77ab85 (diff) |
Catch a NULL pointer
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 24342baf..c8b6ba9d 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -525,6 +525,11 @@ char *retrieve_full_path(struct event *ev, const char *data) char *return_value; char *pholder; + if ( data == NULL ) { + ERROR("HDF5 location must not be NULL\n"); + return NULL; + } + return_value = strdup(data); pholder = strstr(return_value, "%"); ei = 0; |