From: Sebastian Harl Date: Mon, 26 Mar 2007 08:23:35 +0000 (+0200) Subject: plugin.c: Check if `list_log' is not NULL. X-Git-Tag: collectd-4.0.0~149 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=273658710431323d206dd7ed9568fae81ed59664;p=collectd.git plugin.c: Check if `list_log' is not NULL. --- diff --git a/src/plugin.c b/src/plugin.c index e49963a6..74a6e5eb 100644 --- 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;