diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-01-01 01:19:39 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-01-01 01:19:39 (GMT) |
commit | 07b76068a4517f874fc5584049178ed5f61e3cea (patch) | |
tree | 7223c8f107c0e21c38c0482962dbb2584345a74e /src/H5FDdirect.c | |
parent | e8108d76992ba43fbdfda01b262e9121ad00d2ed (diff) | |
parent | fa6077332b36f3af0042561ccff29faef7f09e34 (diff) | |
download | hdf5-07b76068a4517f874fc5584049178ed5f61e3cea.zip hdf5-07b76068a4517f874fc5584049178ed5f61e3cea.tar.gz hdf5-07b76068a4517f874fc5584049178ed5f61e3cea.tar.bz2 |
Merge branch 'develop' into vfd_init_cleanup
Diffstat (limited to 'src/H5FDdirect.c')
-rw-r--r-- | src/H5FDdirect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDdirect.c b/src/H5FDdirect.c index 4476654..10c368a 100644 --- a/src/H5FDdirect.c +++ b/src/H5FDdirect.c @@ -288,6 +288,7 @@ H5Pset_fapl_direct(hid_t fapl_id, size_t boundary, size_t block_size, size_t cbu if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list") + HDmemset(&fa, 0, sizeof(H5FD_direct_fapl_t)); if(boundary != 0) fa.mboundary = boundary; else @@ -414,7 +415,7 @@ static void * H5FD_direct_fapl_copy(const void *_old_fa) { const H5FD_direct_fapl_t *old_fa = (const H5FD_direct_fapl_t*)_old_fa; - H5FD_direct_fapl_t *new_fa = H5MM_malloc(sizeof(H5FD_direct_fapl_t)); + H5FD_direct_fapl_t *new_fa = H5MM_calloc(sizeof(H5FD_direct_fapl_t)); FUNC_ENTER_NOAPI_NOINIT_NOERR |