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-02-01 23:54:59 (GMT)
commit2dbcd87fcddfb519369a368a00acbe8826d5a0eb (patch)
treebc9e9d5c5746f9ce2018d4a984c281d23aec5b44 /src/H5Aint.c
parent20ebc34e01601a7d7d67b925e47227ad9e17110b (diff)
downloadhdf5-2dbcd87fcddfb519369a368a00acbe8826d5a0eb.zip
hdf5-2dbcd87fcddfb519369a368a00acbe8826d5a0eb.tar.gz
hdf5-2dbcd87fcddfb519369a368a00acbe8826d5a0eb.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 4690616..06ef4591 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -180,8 +180,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 */