git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6572eff
)
tevent: make tevent_debug() a noop if ev is NULL
author
Stefan Metzmacher
<metze@samba.org>
Mon, 5 Jan 2009 18:41:03 +0000
(19:41 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 5 Jan 2009 21:44:52 +0000
(22:44 +0100)
metze
lib/tevent/tevent_debug.c
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent_debug.c
b/lib/tevent/tevent_debug.c
index 841446bf6c929652793231258dbff210b9a2d6c6..ad5212b0aebdcb24f778ba55bb19710066b077dd 100644
(file)
--- 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;
}