diff options
author | Thomas White <taw@physics.org> | 2015-07-18 08:07:08 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-07-18 08:07:08 +0200 |
commit | 6b61ca4c2f8fdb588b7e52d271f394728174ed92 (patch) | |
tree | 36d2cb36ffa791e848fd766e098a8e6c4b7e83c2 /libcrystfel | |
parent | 854f85f90d6cc8424bc0459372720ed951165211 (diff) | |
parent | 93ebb7f58986e82062de8104854038b3e93673de (diff) |
Merge branch 'master' of ssh://git.bitwiz.org.uk/crystfel
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 473d7da7..24a8c282 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -2131,7 +2131,7 @@ int check_path_existence(hid_t fh, const char *path) int check; sep = strstr(start, "/"); - if ( strlen(sep) == 1 ) { + if ( sep != NULL && strlen(sep) == 1 ) { ERROR("Error: Data path ends with a / symbol\n"); free(path_copy); return 1; |