diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2018-12-19 04:30:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2018-12-19 04:30:12 (GMT) |
commit | b61ad0f7b68f974356a33b335e94e21a941c0621 (patch) | |
tree | c30308297c83b1009ffa36ed085a20f8f8c6f803 /src/H5FDdirect.c | |
parent | bd096066c3d9613fcece7450f8628a3a660b6b4f (diff) | |
download | hdf5-b61ad0f7b68f974356a33b335e94e21a941c0621.zip hdf5-b61ad0f7b68f974356a33b335e94e21a941c0621.tar.gz hdf5-b61ad0f7b68f974356a33b335e94e21a941c0621.tar.bz2 |
Clear driver properties before returning them to application.
Move write_tracking and page_size properties to be inside the core VFD's
driver properties.
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 906ec28..958f53c 100644 --- a/src/H5FDdirect.c +++ b/src/H5FDdirect.c @@ -291,6 +291,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 @@ -417,7 +418,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(1, sizeof(H5FD_direct_fapl_t)); FUNC_ENTER_NOAPI_NOINIT_NOERR |