summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-07-30 22:26:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-07-30 22:26:39 (GMT)
commitf977c4dfd0e5eb6f6e8527bdc9e48edebe500d78 (patch)
tree124460e7d9b653f56af03836afb297907f344321 /src/H5Aint.c
parent34323c289dabeb875beb9765fafa3651d0378f4f (diff)
parent11bfbb10012b06894e70730735cf9c47bf565fe8 (diff)
downloadhdf5-f977c4dfd0e5eb6f6e8527bdc9e48edebe500d78.zip
hdf5-f977c4dfd0e5eb6f6e8527bdc9e48edebe500d78.tar.gz
hdf5-f977c4dfd0e5eb6f6e8527bdc9e48edebe500d78.tar.bz2
Merge branch 'hdf5_1_10' into 1_10_normalization
Diffstat (limited to 'src/H5Aint.c')
-rw-r--r--src/H5Aint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c
index 57fc8d9..3b6b7a2 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -612,6 +612,10 @@ H5A__read(const H5A_t *attr, const H5T_t *mem_type, void *buf)
HDassert(mem_type);
HDassert(buf);
+ /* Patch the top level file pointer in attr->shared->dt->shared->u.vlen.f if needed */
+ if(H5T_patch_vlen_file(attr->shared->dt, attr->oloc.file) < 0 )
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTOPENOBJ, FAIL, "can't patch VL datatype file pointer")
+
/* Create buffer for data to store on disk */
if((snelmts = H5S_GET_EXTENT_NPOINTS(attr->shared->ds)) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTCOUNT, FAIL, "dataspace is invalid")