diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-05 19:41:03 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-05 22:44:52 +0100 |
commit | a99f76960d9f326663d26d15aa0bf57f6ea3927f (patch) | |
tree | 88b824c980751d3f45c3f3a2adc585a0b3bfa54d /lib/tevent | |
parent | 6572eff1835036ceed805b33fb1bb53c8404b7b7 (diff) | |
download | samba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.tar.gz samba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.tar.bz2 samba-a99f76960d9f326663d26d15aa0bf57f6ea3927f.zip |
tevent: make tevent_debug() a noop if ev is NULL
metze
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_debug.c | 3 |
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; } |