From 273658710431323d206dd7ed9568fae81ed59664 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 26 Mar 2007 10:23:35 +0200 Subject: [PATCH] plugin.c: Check if `list_log' is not NULL. --- src/plugin.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2