Code

Rewritten condition more clearly.
authorMarc Falzon <marc@falzon.me>
Tue, 1 Oct 2013 20:20:41 +0000 (22:20 +0200)
committerMarc Falzon <marc@falzon.me>
Tue, 1 Oct 2013 20:20:41 +0000 (22:20 +0200)
src/filter_chain.c

index 57bcc9bcba5dc865c5d9bafd82892a6f4a7b7ed6..f5606e90145af0d166af3678794fdfec6091394b 100644 (file)
@@ -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;
   }