projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow log_module() to NULL log types.
[srvx.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index 11ec27f996df82411543317e43955e02d1fbcde7..7352b1147db7c67a2ecd6e010c822ce78c3d9bbf 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-567,6
+567,8
@@
log_module(struct log_type *type, enum log_severity sev, const char *format, ...
unsigned int ii;
va_list args;
+ if (!type)
+ return;
if (sev > LOG_FATAL) {
log_module(MAIN_LOG, LOG_ERROR, "Illegal log_module severity %d", sev);
return;