summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_reader.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-09-26 21:52:41 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-09-26 21:52:41 (GMT)
commit2fd118ceaf50d2f4f0774c48d4db656ebb79d1b0 (patch)
tree474b7748da4d1736b11ccd5e858982058e049595 /test/vfd_swmr_reader.c
parenta68c2c92c3c0896cb83d2f9e85e69ecfd8744e4c (diff)
downloadhdf5-2fd118ceaf50d2f4f0774c48d4db656ebb79d1b0.zip
hdf5-2fd118ceaf50d2f4f0774c48d4db656ebb79d1b0.tar.gz
hdf5-2fd118ceaf50d2f4f0774c48d4db656ebb79d1b0.tar.bz2
Initialize VFD SWMR configuration block to zeroes. I was hopeful that
this would fix a bug, but I don't think it had any effect. Still, a necessary change.
Diffstat (limited to 'test/vfd_swmr_reader.c')
-rw-r--r--test/vfd_swmr_reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vfd_swmr_reader.c b/test/vfd_swmr_reader.c
index 69613bd..0308ee4 100644
--- a/test/vfd_swmr_reader.c
+++ b/test/vfd_swmr_reader.c
@@ -306,6 +306,8 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file,
if((config = (H5F_vfd_swmr_config_t *)HDmalloc(sizeof(H5F_vfd_swmr_config_t))) == NULL)
goto error;
+ memset(config, '\0', sizeof(*config));
+
config->version = H5F__CURR_VFD_SWMR_CONFIG_VERSION;
config->tick_len = 4;
config->max_lag = 5;