summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-09-20 19:16:26 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-09-20 19:16:26 (GMT)
commit5f8f703dec2e35d8a69c7bd3d9fb3b3e8e116bee (patch)
tree7ba3452c80794e47dbc6925b72db86c7f9c7442d /src
parent4e4d737eca47a95cd977e8f3b701e3794695ac26 (diff)
downloadhdf5-5f8f703dec2e35d8a69c7bd3d9fb3b3e8e116bee.zip
hdf5-5f8f703dec2e35d8a69c7bd3d9fb3b3e8e116bee.tar.gz
hdf5-5f8f703dec2e35d8a69c7bd3d9fb3b3e8e116bee.tar.bz2
Continued progress in implementing tests.
Diffstat (limited to 'src')
-rw-r--r--src/H5Dint.c2
-rw-r--r--src/H5Oint.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index bcdcc49..8c2dcf1 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -846,7 +846,7 @@ H5D__calculate_minimum_header_size( \
if ((H5O_OH_GET_VERSION(ohdr) > 1) && /* TODO: H5O_VERSION_1 in H5Opkg.h */
(H5O_HDR_STORE_TIMES & H5O_OH_GET_FLAGS(ohdr)))
{
- time_t mtime = H5O_OH_GET_MTIME(ohdr);
+ time_t mtime = H5_now();
ret_value += H5O_msg_size_oh(
file,
ohdr,
diff --git a/src/H5Oint.c b/src/H5Oint.c
index 1d07415..b543d1b 100644
--- a/src/H5Oint.c
+++ b/src/H5Oint.c
@@ -2848,8 +2848,7 @@ H5O_get_oh_flags(const H5O_t *oh)
{
FUNC_ENTER_NOAPI_NOINIT_NOERR
HDassert(oh);
- HDassert(oh->flags);
- FUNC_LEAVE_NOAPI(oh->flags);
+ FUNC_LEAVE_NOAPI(oh->flags); /* flags can be 0 */
}