summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/tevent_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tevent/tevent_debug.c b/lib/tevent/tevent_debug.c
index 841446bf6c..ad5212b0ae 100644
--- a/lib/tevent/tevent_debug.c
+++ b/lib/tevent/tevent_debug.c
@@ -79,6 +79,9 @@ void tevent_debug(struct tevent_context *ev, enum tevent_debug_level level,
const char *fmt, ...)
{
va_list ap;
+ if (!ev) {
+ return;
+ }
if (ev->debug_ops.debug == NULL) {
return;
}