summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2021-12-11 02:19:30 (GMT)
committerGitHub <noreply@github.com>2021-12-11 02:19:30 (GMT)
commit6a9a56f4c2adcd1d7c4f19acf7555fe27c1af490 (patch)
treee3bd99a043d85bff10ed76efcacaa1907e99eb57 /src
parent290b52f1b840e4945cf12508bd4832c5750695d8 (diff)
downloadhdf5-6a9a56f4c2adcd1d7c4f19acf7555fe27c1af490.zip
hdf5-6a9a56f4c2adcd1d7c4f19acf7555fe27c1af490.tar.gz
hdf5-6a9a56f4c2adcd1d7c4f19acf7555fe27c1af490.tar.bz2
Initialize filter mask and chunk nbytes for 'Single' chunk index (#1261) (#1276)
Diffstat (limited to 'src')
-rw-r--r--src/H5Dsingle.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5Dsingle.c b/src/H5Dsingle.c
index 50cf6a1..b93523a 100644
--- a/src/H5Dsingle.c
+++ b/src/H5Dsingle.c
@@ -125,8 +125,14 @@ H5D__single_idx_init(const H5D_chk_idx_info_t *idx_info, const H5S_t H5_ATTR_UNU
HDassert(idx_info->layout);
HDassert(idx_info->storage);
- if (idx_info->pline->nused)
+ if (idx_info->pline->nused) {
idx_info->layout->flags |= H5O_LAYOUT_CHUNK_SINGLE_INDEX_WITH_FILTER;
+
+ if (!H5F_addr_defined(idx_info->storage->idx_addr)) {
+ idx_info->storage->u.single.nbytes = 0;
+ idx_info->storage->u.single.filter_mask = 0;
+ }
+ }
else
idx_info->layout->flags = 0;