summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-05-16 21:21:53 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-05-16 21:21:53 (GMT)
commit72a1a02b834e37e6089fa9074244a7d1acff92be (patch)
tree04f618d0a99e03b092707f2f0574ab053c92c98d /src
parent647016dad2bd5e9c635fcbaf42a76014f2acd8bb (diff)
downloadhdf5-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')
-rw-r--r--src/H5I.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5I.c b/src/H5I.c
index d437dd4..8697f4f 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -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);