summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);