summaryrefslogtreecommitdiffstats
path: root/src/H5Doh.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-09-25 14:13:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-09-25 14:13:50 (GMT)
commit532a8df687e6acff18453fec6b8fe22f4bc65ebe (patch)
tree3d7904fedbbf204fd7aa49eabe598e672de43f99 /src/H5Doh.c
parented6cfe8ee6c09ac38cd6905a79cc9a5d36e779cd (diff)
parent8e3b094bad1706b444554cd23591fd1c4431c1f1 (diff)
downloadhdf5-532a8df687e6acff18453fec6b8fe22f4bc65ebe.zip
hdf5-532a8df687e6acff18453fec6b8fe22f4bc65ebe.tar.gz
hdf5-532a8df687e6acff18453fec6b8fe22f4bc65ebe.tar.bz2
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit '8e3b094bad1706b444554cd23591fd1c4431c1f1': Remainder of vol_normalization changes (dataset, attribute, files, objects).
Diffstat (limited to 'src/H5Doh.c')
-rw-r--r--src/H5Doh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Doh.c b/src/H5Doh.c
index f8ce69f..38d0914 100644
--- a/src/H5Doh.c
+++ b/src/H5Doh.c
@@ -189,15 +189,15 @@ H5O__dset_isa(const H5O_t *oh)
/* Datatype */
if((exists = H5O_msg_exists_oh(oh, H5O_DTYPE_ID)) < 0)
- HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to read object header")
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to read object header")
else if(!exists)
- HGOTO_DONE(FALSE)
+ HGOTO_DONE(FALSE)
/* Layout */
if((exists = H5O_msg_exists_oh(oh, H5O_SDSPACE_ID)) < 0)
- HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to read object header")
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to read object header")
else if(!exists)
- HGOTO_DONE(FALSE)
+ HGOTO_DONE(FALSE)
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -260,7 +260,7 @@ H5O__dset_open(const H5G_loc_t *obj_loc, hbool_t app_ref)
HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register dataset")
done:
- if(ret_value < 0)
+ if(H5I_INVALID_HID == ret_value)
if(dset && H5D_close(dset) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, H5I_INVALID_HID, "unable to release dataset")