diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-12-29 17:56:08 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-12-29 17:56:08 (GMT) |
commit | 16c51c2061e8c8bacd890ee9543ffcfd552bfb88 (patch) | |
tree | 2480c58a8dbd9d0f62a4d117939da83e2f51b2ec /src/H5I.c | |
parent | 99e520c8cb3a5e33a5e85ff267fe53e98da1b61e (diff) | |
download | hdf5-16c51c2061e8c8bacd890ee9543ffcfd552bfb88.zip hdf5-16c51c2061e8c8bacd890ee9543ffcfd552bfb88.tar.gz hdf5-16c51c2061e8c8bacd890ee9543ffcfd552bfb88.tar.bz2 |
[svn-r7984] Purpose: bug fix
Description: VL datatype fails in certain way(hard to describe)
Platforms tested: h5committest
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -117,8 +117,6 @@ H5FL_DEFINE_STATIC(H5I_id_info_t); /*--------------------- Local function prototypes ---------------------------*/ static herr_t H5I_init_interface(void); static H5I_id_info_t *H5I_find_id(hid_t id); -static hid_t H5I_get_file_id(hid_t obj_id); -static int H5I_get_ref(hid_t id); #ifdef H5I_DEBUG_OUTPUT static herr_t H5I_debug(H5I_type_t grp); #endif /* H5I_DEBUG_OUTPUT */ @@ -844,7 +842,7 @@ done: * *------------------------------------------------------------------------- */ -static hid_t +hid_t H5I_get_file_id(hid_t obj_id) { H5G_entry_t *ent; @@ -1345,8 +1343,11 @@ H5I_find_id(hid_t id) /* Check arguments */ grp = H5I_GRP(id); - if (grp <= H5I_BADID || grp >= H5I_NGROUPS) + + if (grp <= H5I_BADID || grp >= H5I_NGROUPS) { HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number"); + } + grp_ptr = H5I_id_group_list_g[grp]; if (grp_ptr == NULL || grp_ptr->count <= 0) HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, NULL, "invalid group"); |