Code

Make all plugins ready for reconfiguration support.
[sysdb.git] / src / backend / collectd / unixsock.c
index 7c60c5e79b9d14a978644a72915a3ad39202fcb6..0c5082af54c0b9ca99a95ef8fea295ffeeae1e3b 100644 (file)
@@ -347,6 +347,9 @@ sdb_collectd_config(oconfig_item_t *ci)
 {
        int i;
 
+       if (! ci) /* nothing to do to deconfigure this plugin */
+               return 0;
+
        for (i = 0; i < ci->children_num; ++i) {
                oconfig_item_t *child = ci->children + i;