summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-04-02 01:46:07 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:57 (GMT)
commit27c3a519e9b1eeda61f06dee3c8f529f665f8210 (patch)
tree321f5bd96909f3bdd468b4b45d7b656f3e1e9f3c /src
parent8040d73fbe2d9839e2bbacb0aba9b91244c37581 (diff)
downloadhdf5-27c3a519e9b1eeda61f06dee3c8f529f665f8210.zip
hdf5-27c3a519e9b1eeda61f06dee3c8f529f665f8210.tar.gz
hdf5-27c3a519e9b1eeda61f06dee3c8f529f665f8210.tar.bz2
Changed default dataset shared struct to initialize hid_t IDs to
H5I_INVALID_HID.
Diffstat (limited to 'src')
-rw-r--r--src/H5Dint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 9cfa05b..cca6ca0 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.