From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:33:49 +0000 (+0200) Subject: match_value: condition is always true X-Git-Tag: collectd-5.6.0~329^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=66697ecf25472974bb0414e68ca682e93e1b8c8d;p=collectd.git match_value: condition is always true [src/match_value.c:338]: (style) Condition 'value_matches==0' is always true --- diff --git a/src/match_value.c b/src/match_value.c index 64e11367..fbe1f039 100644 --- a/src/match_value.c +++ b/src/match_value.c @@ -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)