From a267c4e5d37f00bf6cff942b57b5a13affaa8bd5 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 1 Apr 2020 18:46:07 -0700 Subject: Changed default dataset shared struct to initialize hid_t IDs to H5I_INVALID_HID. --- src/H5Dint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/H5Dint.c b/src/H5Dint.c index 1624f7b..2539b2c 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -207,6 +207,9 @@ H5D__init_package(void) /* Reset the "default dataset" information */ HDmemset(&H5D_def_dset, 0, sizeof(H5D_shared_t)); + H5D_def_dset.type_id = H5I_INVALID_HID; + H5D_def_dset.dapl_id = H5I_INVALID_HID; + H5D_def_dset.dcpl_id = H5I_INVALID_HID; /* Get the default dataset creation property list values and initialize the * default dataset with them. -- cgit v0.12