summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)