Skip to content

Commit

Permalink
Restore the memset change
Browse files Browse the repository at this point in the history
  • Loading branch information
vchoi-hdfgroup committed Sep 19, 2023
1 parent 8c29ca9 commit 9c72f3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/H5Dscatgath.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,12 @@ H5D__scatgath_read(const H5D_io_info_t *io_info, const H5D_dset_io_info_t *dset_
smine_nelmts =
(size_t)MIN(dset_info->type_info.request_nelmts, (dset_info->nelmts - smine_start));

memset(tmp_buf, 0,
smine_nelmts *
MAX(dset_info->type_info.src_type_size, dset_info->type_info.dst_type_size));
}

memset(tmp_buf, 0,
smine_nelmts *
MAX(dset_info->type_info.src_type_size, dset_info->type_info.dst_type_size));

/*
* Gather the data from disk into the datatype conversion
* buffer. Also gather data from application to background buffer
Expand Down

0 comments on commit 9c72f3a

Please sign in to comment.