diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-11-04 16:44:39 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-11-04 16:44:39 (GMT) |
commit | 33a18df797719e423543ed8a177d886bc85b275d (patch) | |
tree | 80cdc8835e08817d91f99d9a5419de5b18fa8963 /src/H5VLnative.c | |
parent | b1e97e651528704283fa42445120426080e0817f (diff) | |
parent | 52bff896a7e57d1c1b19438b8be76b2cb01ae94b (diff) | |
download | hdf5-33a18df797719e423543ed8a177d886bc85b275d.zip hdf5-33a18df797719e423543ed8a177d886bc85b275d.tar.gz hdf5-33a18df797719e423543ed8a177d886bc85b275d.tar.bz2 |
[svn-r25778] merge from trunk.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r-- | src/H5VLnative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c index 9675655..61abedb 100644 --- a/src/H5VLnative.c +++ b/src/H5VLnative.c @@ -509,7 +509,7 @@ H5VL_native_attr_create(void *obj, H5VL_loc_params_t loc_params, const char *att if(0 == (H5F_INTENT(loc.oloc->file) & H5F_ACC_RDWR)) HGOTO_ERROR(H5E_ARGS, H5E_WRITEERROR, NULL, "no write intent on file") - if(NULL == (dt = (H5T_t *)H5I_object(type_id))) + if(NULL == (dt = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a datatype") /* If this is a named datatype, get the plugin pointer to the datatype */ type = (H5T_t *)H5T_get_actual_type(dt); |