Code

match_value: condition is always true
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:33:49 +0000 (12:33 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:33:49 +0000 (12:33 +0200)
[src/match_value.c:338]: (style) Condition 'value_matches==0' is always true

src/match_value.c

index 64e1136703e9aaf2833a13fea9ded807a5802199..fbe1f03987bcf0056d704d1b3f7e9bbe372d0ed9 100644 (file)
@@ -335,7 +335,7 @@ static int mv_match (const data_set_t *ds, const value_list_t *vl, /* {{{ */
       if (m->satisfy == SATISFY_ANY)
         break;
     }
-    else if (value_matches == 0)
+    else
     {
       status = FC_MATCH_NO_MATCH;
       if (m->satisfy == SATISFY_ALL)