From cef3618ec87dcd6cda4218e6643fd2b926ae6578 Mon Sep 17 00:00:00 2001 From: Glenn Song Date: Thu, 7 Mar 2024 18:52:41 -0600 Subject: [PATCH] Initialize selection type in both if/else sections --- src/H5Dchunk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index c8bad760e71..a91dc5e6fc9 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -1205,6 +1205,10 @@ H5D__chunk_io_init_selections(H5D_io_info_t *io_info, H5D_dset_io_info_t *dinfo) /* Initialize skip list for chunk selections */ fm->use_single = true; + /* Initialize selection type in memory and file */ + fm->msel_type = H5S_SEL_NONE; + fm->fsel_type = H5S_SEL_NONE; + /* Initialize single chunk dataspace */ if (NULL == dataset->shared->cache.chunk.single_space) { /* Make a copy of the dataspace for the dataset */