From 4dc3912afb15688cef0659cf8c1b858cce20394a Mon Sep 17 00:00:00 2001 From: Marc Falzon Date: Tue, 1 Oct 2013 22:20:41 +0200 Subject: [PATCH] Rewritten condition more clearly. --- src/filter_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0