From: Marc Falzon Date: Tue, 1 Oct 2013 20:20:41 +0000 (+0200) Subject: Rewritten condition more clearly. X-Git-Tag: collectd-5.5.0~341^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4dc3912afb15688cef0659cf8c1b858cce20394a;p=collectd.git Rewritten condition more clearly. --- diff --git a/src/filter_chain.c b/src/filter_chain.c index 57bcc9bc..f5606e90 100644 --- a/src/filter_chain.c +++ b/src/filter_chain.c @@ -450,7 +450,7 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */ if (chain_list_head != NULL) { - if ((chain = fc_chain_get_by_name (ci->values[0].value.string))) + if ((chain = fc_chain_get_by_name (ci->values[0].value.string)) != NULL) new_chain = 0; }