diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-03-06 15:48:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 15:48:28 (GMT) |
commit | 10a35d0ebbb49731795ca4cd16f3e037a78ec73d (patch) | |
tree | a37d19ef4503038c266e13e96536061ce5e338aa | |
parent | 5fc71118958245a1c72908c10996d745c9d145f0 (diff) | |
download | hdf5-10a35d0ebbb49731795ca4cd16f3e037a78ec73d.zip hdf5-10a35d0ebbb49731795ca4cd16f3e037a78ec73d.tar.gz hdf5-10a35d0ebbb49731795ca4cd16f3e037a78ec73d.tar.bz2 |
Fix uninitialized bytes in selection I/O test (#4073)
This was due to a complex type fill value being set to -1 instead
of a proper complex value. This was a test problem and not a core
library issue.
-rw-r--r-- | test/select_io_dset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/select_io_dset.c b/test/select_io_dset.c index 33b1c84..1ff7fe2 100644 --- a/test/select_io_dset.c +++ b/test/select_io_dset.c @@ -773,7 +773,10 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf) s2_t *s2_wbuf_bak = NULL; s2_t *s2_rbuf = NULL; char dset_name[DSET_NAME_LEN]; - int fillvalue = -1; + s1_t fillvalue; + + /* Initialize the fill value */ + memset(&fillvalue, 0, sizeof(s1_t)); /* Create dataset transfer property list */ if ((dxpl = H5Pcreate(H5P_DATASET_XFER)) < 0) |