diff options
-rw-r--r-- | test/vfd_swmr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/vfd_swmr.c b/test/vfd_swmr.c index 6b9e2dc..e4c6930 100644 --- a/test/vfd_swmr.c +++ b/test/vfd_swmr.c @@ -834,9 +834,8 @@ test_writer_md(void) TESTING("Verify the metadata file for VFD SWMR writer"); /* Allocate memory for the configuration structure */ - if((my_config = (H5F_vfd_swmr_config_t *)HDmalloc(sizeof(H5F_vfd_swmr_config_t))) == NULL) + if((my_config = HDcalloc(1, sizeof(H5F_vfd_swmr_config_t))) == NULL) FAIL_STACK_ERROR; - HDmemset(my_config, 0, sizeof(H5F_vfd_swmr_config_t)); /* Create a copy of the file access property list */ if((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0) |