summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative_dataset.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-10-10 15:11:22 (GMT)
committerGitHub <noreply@github.com>2023-10-10 15:11:22 (GMT)
commitbfbfaf72e17fcc9efa848557a0c57c0583d5c8c4 (patch)
tree46c6309ab264df8af6bba567713a22bb187baa2f /src/H5VLnative_dataset.c
parent7631015ea4af183c01025c4907869f47f7355c51 (diff)
downloadhdf5-bfbfaf72e17fcc9efa848557a0c57c0583d5c8c4.zip
hdf5-bfbfaf72e17fcc9efa848557a0c57c0583d5c8c4.tar.gz
hdf5-bfbfaf72e17fcc9efa848557a0c57c0583d5c8c4.tar.bz2
Update parallel compression feature to support multi-dataset I/O (#3591)
Diffstat (limited to 'src/H5VLnative_dataset.c')
-rw-r--r--src/H5VLnative_dataset.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5VLnative_dataset.c b/src/H5VLnative_dataset.c
index 9054157..a58eb51 100644
--- a/src/H5VLnative_dataset.c
+++ b/src/H5VLnative_dataset.c
@@ -97,6 +97,16 @@ H5VL__native_dataset_io_setup(size_t count, void *obj[], hid_t mem_type_id[], hi
/* Iterate over datasets */
for (i = 0; i < count; i++) {
+ /* Initialize fields not set here to prevent use of uninitialized */
+ memset(&dinfo[i].layout_ops, 0, sizeof(dinfo[i].layout_ops));
+ memset(&dinfo[i].io_ops, 0, sizeof(dinfo[i].io_ops));
+ memset(&dinfo[i].layout_io_info, 0, sizeof(dinfo[i].layout_io_info));
+ memset(&dinfo[i].type_info, 0, sizeof(dinfo[i].type_info));
+ dinfo[i].store = NULL;
+ dinfo[i].layout = NULL;
+ dinfo[i].nelmts = 0;
+ dinfo[i].skip_io = false;
+
/* Set up dset */
dinfo[i].dset = (H5D_t *)obj[i];
assert(dinfo[i].dset);