summaryrefslogtreecommitdiffstats
path: root/src/H5FDmulti.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-01-01 01:19:39 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-01-01 01:19:39 (GMT)
commit07b76068a4517f874fc5584049178ed5f61e3cea (patch)
tree7223c8f107c0e21c38c0482962dbb2584345a74e /src/H5FDmulti.c
parente8108d76992ba43fbdfda01b262e9121ad00d2ed (diff)
parentfa6077332b36f3af0042561ccff29faef7f09e34 (diff)
downloadhdf5-07b76068a4517f874fc5584049178ed5f61e3cea.zip
hdf5-07b76068a4517f874fc5584049178ed5f61e3cea.tar.gz
hdf5-07b76068a4517f874fc5584049178ed5f61e3cea.tar.bz2
Merge branch 'develop' into vfd_init_cleanup
Diffstat (limited to 'src/H5FDmulti.c')
-rw-r--r--src/H5FDmulti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index ff41371..fac0909 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -491,6 +491,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
* Initialize driver specific information. No need to copy it into the FA
* struct since all members will be copied by H5Pset_driver().
*/
+ memset(&fa, 0, sizeof(H5FD_multi_fapl_t));
memcpy(fa.memb_map, memb_map, H5FD_MEM_NTYPES*sizeof(H5FD_mem_t));
memcpy(fa.memb_fapl, memb_fapl, H5FD_MEM_NTYPES*sizeof(hid_t));
memcpy(fa.memb_name, memb_name, H5FD_MEM_NTYPES*sizeof(char*));
@@ -886,7 +887,7 @@ static void *
H5FD_multi_fapl_copy(const void *_old_fa)
{
const H5FD_multi_fapl_t *old_fa = (const H5FD_multi_fapl_t*)_old_fa;
- H5FD_multi_fapl_t *new_fa = (H5FD_multi_fapl_t *)malloc(sizeof(H5FD_multi_fapl_t));
+ H5FD_multi_fapl_t *new_fa = (H5FD_multi_fapl_t *)calloc(1, sizeof(H5FD_multi_fapl_t));
int nerrors = 0;
static const char *func="H5FD_multi_fapl_copy"; /* Function Name for error reporting */