summaryrefslogtreecommitdiffstats
path: root/src/H5FDdirect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-12-19 04:30:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-12-19 04:30:12 (GMT)
commitb61ad0f7b68f974356a33b335e94e21a941c0621 (patch)
treec30308297c83b1009ffa36ed085a20f8f8c6f803 /src/H5FDdirect.c
parentbd096066c3d9613fcece7450f8628a3a660b6b4f (diff)
downloadhdf5-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.c3
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