summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-05 19:41:03 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-05 22:44:52 +0100
commita99f76960d9f326663d26d15aa0bf57f6ea3927f (patch)
tree88b824c980751d3f45c3f3a2adc585a0b3bfa54d
parent6572eff1835036ceed805b33fb1bb53c8404b7b7 (diff)
downloadsamba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.tar.gz
samba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.tar.bz2
samba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.zip
tevent: make tevent_debug() a noop if ev is NULL
metze
-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;
}