Skip to content

Commit

Permalink
Initialize selection type in chunk struct (HDFGroup#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsong09 authored Mar 12, 2024
1 parent 8123614 commit 27f7318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/H5Dchunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 27f7318

Please sign in to comment.