summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-11-04 16:44:39 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-11-04 16:44:39 (GMT)
commit33a18df797719e423543ed8a177d886bc85b275d (patch)
tree80cdc8835e08817d91f99d9a5419de5b18fa8963 /src/H5VLnative.c
parentb1e97e651528704283fa42445120426080e0817f (diff)
parent52bff896a7e57d1c1b19438b8be76b2cb01ae94b (diff)
downloadhdf5-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.c2
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);