From: Stefan Metzmacher Date: Mon, 5 Jan 2009 18:41:03 +0000 (+0100) Subject: tevent: make tevent_debug() a noop if ev is NULL X-Git-Tag: samba-4.0.0alpha6~278 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a99f76960d9f326663d26d15aa0bf57f6ea3927f;p=thirdparty%2Fsamba.git tevent: make tevent_debug() a noop if ev is NULL metze --- diff --git a/lib/tevent/tevent_debug.c b/lib/tevent/tevent_debug.c index 841446bf6c9..ad5212b0aeb 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; }