diff options
author | Thomas White <taw@physics.org> | 2014-09-18 16:32:43 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-09-18 16:32:43 +0200 |
commit | a8f6209b59df897d0aa5d398a0ee8d54e1df3a81 (patch) | |
tree | 056069abe68785d77060fefe50685f7e8420888c | |
parent | 2bd4e4ff6abfd56623ca98b81f28557a6bfd8a56 (diff) |
Fussiness
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 2c8a0736..f5eaef02 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -512,11 +512,9 @@ int hdf5_write_image(const char *filename, struct image *image, char *element) hsize_t size[2]; char *path, *group = NULL, *object = NULL; - int fail; path = locations[li].location; - fail = split_group_and_object(path, &group, &object); - if ( fail ) { + if ( split_group_and_object(path, &group, &object) ) { ERROR("Error while determining write locations " "for file: %s\n", filename); return 1; @@ -537,6 +535,7 @@ int hdf5_write_image(const char *filename, struct image *image, char *element) H5Fclose(fh); return 1; } + } else { gh = H5Gopen2(fh, group, H5P_DEFAULT); } |