diff options
author | David Young <dyoung@hdfgroup.org> | 2020-02-26 22:31:50 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-02-26 22:31:50 (GMT) |
commit | 56a9459eb57c60c3fdb14a146f730b0da32ce9a1 (patch) | |
tree | fca2d989ba227cbbda36c90dad06e84fd2491220 /src | |
parent | 8b2ba616ebfe37db308ff1ec40beb6e13581d587 (diff) | |
download | hdf5-56a9459eb57c60c3fdb14a146f730b0da32ce9a1.zip hdf5-56a9459eb57c60c3fdb14a146f730b0da32ce9a1.tar.gz hdf5-56a9459eb57c60c3fdb14a146f730b0da32ce9a1.tar.bz2 |
On the reader, zero the shadow-index entries before filling fields from the
shadow file so that members like `garbage` are not filled with garbage that
fools us, later.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDvfd_swmr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c index 008db8e..6b63700 100644 --- a/src/H5FDvfd_swmr.c +++ b/src/H5FDvfd_swmr.c @@ -1389,7 +1389,7 @@ H5FD__vfd_swmr_index_deserialize(const H5FD_t *_file, /* Read index entries */ if(md_index->num_entries) { /* Allocate memory for index entries */ - md_index->entries = H5FL_SEQ_MALLOC(H5FD_vfd_swmr_idx_entry_t, + md_index->entries = H5FL_SEQ_CALLOC(H5FD_vfd_swmr_idx_entry_t, md_index->num_entries); if (NULL == md_index->entries) { HGOTO_ERROR(H5E_VFL, H5E_CANTALLOC, FAIL, |