diff options
author | Glenn Song <43005495+glennsong09@users.noreply.github.com> | 2024-03-12 19:01:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 19:01:23 (GMT) |
commit | 27f73183e27b765278b5f41dccd0efdb1a67d5cc (patch) | |
tree | 0c06ab8ae932b90974949204baf272f26538183d | |
parent | 8123614b4d9e814f64e5bd325ccaead5bb76e003 (diff) | |
download | hdf5-27f73183e27b765278b5f41dccd0efdb1a67d5cc.zip hdf5-27f73183e27b765278b5f41dccd0efdb1a67d5cc.tar.gz hdf5-27f73183e27b765278b5f41dccd0efdb1a67d5cc.tar.bz2 |
Initialize selection type in chunk struct (#4087)
-rw-r--r-- | src/H5Dchunk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index 173f390..415a57e 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -1060,6 +1060,10 @@ H5D__chunk_io_init(H5D_io_info_t *io_info, H5D_dset_io_info_t *dinfo) fm->single_space = NULL; fm->single_piece_info = NULL; + /* Initialize selection type in memory and file */ + fm->msel_type = H5S_SEL_ERROR; + fm->fsel_type = H5S_SEL_ERROR; + /* Check if the memory space is scalar & make equivalent memory space */ if ((sm_ndims = H5S_GET_EXTENT_NDIMS(dinfo->mem_space)) < 0) HGOTO_ERROR(H5E_DATASPACE, H5E_CANTGET, FAIL, "unable to get dimension number"); |