summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2020-01-03 05:51:25 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2020-01-03 18:43:51 (GMT)
commitccf177344ae2d4b03802adecc08a6cc956a7dac5 (patch)
treec64767e1b87851109fc0cfa8acc6aac633a24735 /src/H5Aint.c
parent041b14c876cc7466da7868ef563563c879951ad6 (diff)
downloadhdf5-ccf177344ae2d4b03802adecc08a6cc956a7dac5.zip
hdf5-ccf177344ae2d4b03802adecc08a6cc956a7dac5.tar.gz
hdf5-ccf177344ae2d4b03802adecc08a6cc956a7dac5.tar.bz2
Fix some places where H5P_DEFAULT gets passed down to a VOL connector
Diffstat (limited to 'src/H5Aint.c')
-rw-r--r--src/H5Aint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c
index 436fced..02d35e3 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -181,8 +181,9 @@ H5A__create(const H5G_loc_t *loc, const char *attr_name, const H5T_t *type,
if(NULL == (attr->shared = H5FL_CALLOC(H5A_shared_t)))
HGOTO_ERROR(H5E_ATTR, H5E_CANTALLOC, NULL, "can't allocate shared attr structure")
- /* If the creation property list is H5P_DEFAULT, use the default character encoding */
- if(acpl_id == H5P_DEFAULT)
+ /* If the creation property list is H5P_ATTRIBUTE_CREATE_DEFAULT, use the default character encoding */
+ HDassert(acpl_id != H5P_DEFAULT);
+ if(acpl_id == H5P_ATTRIBUTE_CREATE_DEFAULT)
attr->shared->encoding = H5F_DEFAULT_CSET;
else {
H5P_genplist_t *ac_plist; /* ACPL Property list */