Skip to content

Commit

Permalink
Fix uninitialized bytes in selection I/O test (#4073)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derobins authored Mar 6, 2024
1 parent 5fc7111 commit 10a35d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/select_io_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10a35d0

Please sign in to comment.