projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plugin.c: Check if `list_log' is not NULL.
[collectd.git]
/
src
/
plugin.c
diff --git
a/src/plugin.c
b/src/plugin.c
index
e49963a
..
74a6e5e
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-470,6
+470,9
@@
void plugin_log (int level, const char *format, ...)
void (*callback) (int, const char *);
llentry_t *le;
+ if (list_log == NULL)
+ return;
+
#if !COLLECT_DEBUG
if (level >= LOG_DEBUG)
return;