diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-05-16 21:21:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-05-16 21:21:53 (GMT) |
commit | 72a1a02b834e37e6089fa9074244a7d1acff92be (patch) | |
tree | 04f618d0a99e03b092707f2f0574ab053c92c98d /src/H5I.c | |
parent | 647016dad2bd5e9c635fcbaf42a76014f2acd8bb (diff) | |
download | hdf5-72a1a02b834e37e6089fa9074244a7d1acff92be.zip hdf5-72a1a02b834e37e6089fa9074244a7d1acff92be.tar.gz hdf5-72a1a02b834e37e6089fa9074244a7d1acff92be.tar.bz2 |
[svn-r1260] Corrected H5Iget_type so error value isn't always returned.
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -708,10 +708,11 @@ H5Iget_type(hid_t id) FUNC_ENTER(H5Iget_type, H5I_BADID); H5TRACE1("It","i",id); + ret_value = H5I_get_type(id); + if (ret_value <= H5I_BADID || ret_value >= H5I_NGROUPS) { HGOTO_DONE(H5I_BADID); } - ret_value = H5I_get_type(id); done: FUNC_LEAVE(ret_value); |