plugin.c: Check if `list_log' is not NULL.
[collectd.git] / src / plugin.c
index e49963a..74a6e5e 100644 (file)
@@ -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;