projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf8a27
)
match_value: condition is always true
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:33:49 +0000
(12:33 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/match_value.c
b/src/match_value.c
index
64e1136
..
fbe1f03
100644
(file)
--- 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)