diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-21 18:13:48 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-21 18:13:48 (GMT) |
commit | 568f982ed26e88f8f8b9253b07cf8cd9bdebfcf6 (patch) | |
tree | ddfaa30361568cdcd48c42c6589f7409f5144a20 /src/H5G.c | |
parent | 0a7e0c3a356de568cbee182133accf947f8d337d (diff) | |
download | hdf5-568f982ed26e88f8f8b9253b07cf8cd9bdebfcf6.zip hdf5-568f982ed26e88f8f8b9253b07cf8cd9bdebfcf6.tar.gz hdf5-568f982ed26e88f8f8b9253b07cf8cd9bdebfcf6.tar.bz2 |
[svn-r25456] fixing a few things and more realignment with trunk.
Diffstat (limited to 'src/H5G.c')
-rw-r--r-- | src/H5G.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -523,12 +523,13 @@ H5Gget_create_plist(hid_t grp_id) FUNC_ENTER_API(FAIL) H5TRACE1("i", "i", grp_id); + /* Check args */ + if(NULL == (grp = (void *)H5I_object_verify(grp_id, H5I_GROUP))) + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a group") + /* get the plugin pointer */ if (NULL == (vol_plugin = (H5VL_t *)H5I_get_aux(grp_id))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "ID does not contain VOL information") - /* get the dataset object */ - if(NULL == (grp = (void *)H5I_object(grp_id))) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid group identifier") if(H5VL_group_get(grp, vol_plugin, H5VL_GROUP_GET_GCPL, H5AC_dxpl_id, H5_EVENT_STACK_NULL, &ret_value) < 0) HGOTO_ERROR(H5E_INTERNAL, H5E_CANTGET, FAIL, "unable to get group creation properties") |