From: Florian Forster Date: Mon, 16 Mar 2009 08:31:04 +0000 (+0100) Subject: src/filter_chain.c: Allow chains without a default target. X-Git-Tag: collectd-4.6.2~3^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f9eac059788d149e3d8fcd9895d3c977f5e9521;p=collectd.git src/filter_chain.c: Allow chains without a default target. This is how it's documented. --- diff --git a/src/filter_chain.c b/src/filter_chain.c index 9a52f7c9..01688ee2 100644 --- a/src/filter_chain.c +++ b/src/filter_chain.c @@ -516,21 +516,6 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */ break; } /* for (ci->children) */ - /* Additional sanity checking. */ - while (status == 0) - { - if (chain->targets == NULL) - { - WARNING ("Filter subsystem: Chain %s: No default target has been " - "specified. Please make sure that there is a block within " - "the block!", chain->name); - status = -1; - break; - } - - break; - } /* while (status == 0) */ - if (status != 0) { fc_free_chains (chain);