summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyang6 <myang6@hdfgroup.org>2021-10-18 22:17:26 (GMT)
committermyang6 <myang6@hdfgroup.org>2021-10-18 22:17:26 (GMT)
commit383fd055affb3e003828fc42fba726583ebeebca (patch)
tree5d4ad898a441a1b8faa2385fbf7abf09bbb3eacc
parenta9670aaa117d7be70c2039bf0fcb7c12104c6ea3 (diff)
downloadhdf5-383fd055affb3e003828fc42fba726583ebeebca.zip
hdf5-383fd055affb3e003828fc42fba726583ebeebca.tar.gz
hdf5-383fd055affb3e003828fc42fba726583ebeebca.tar.bz2
Make sure to check the file point.
-rw-r--r--src/H5Fvfd_swmr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index b549eeb..1b9650f 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -1923,6 +1923,8 @@ H5F_post_vfd_swrm_log_entry(H5F_t *f, int entry_type_code, char *body)
unsigned int elap_min, elap_sec, elap_msec;
FUNC_ENTER_NOAPI(FAIL)
+ if(f==NULL)
+ HGOTO_DONE(TRUE)
if(f->shared->vfd_swmr_log_on == false)
HGOTO_DONE(TRUE)
if(HDclock_gettime(CLOCK_MONOTONIC, &current_time)<0)