diff options
-rw-r--r-- | src/H5Fvfd_swmr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c index f746090..c938014 100644 --- a/src/H5Fvfd_swmr.c +++ b/src/H5Fvfd_swmr.c @@ -1921,6 +1921,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, ¤t_time) < 0) |