diff options
Diffstat (limited to 'libglusterfs/src/logging.c')
-rw-r--r-- | libglusterfs/src/logging.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/logging.c b/libglusterfs/src/logging.c index 078125088d6..3b0c1e8244c 100644 --- a/libglusterfs/src/logging.c +++ b/libglusterfs/src/logging.c @@ -1790,6 +1790,9 @@ gf_log_inject_timer_event (glusterfs_ctx_t *ctx) { int ret = -1; + if (!ctx) + return -1; + pthread_mutex_lock (&ctx->log.log_buf_lock); { ret = __gf_log_inject_timer_event (ctx); |