projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
692e480
)
collectctl: compare pointer with NULL not 0
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:46:07 +0000
(13:46 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 16 Apr 2016 11:59:12 +0000
(13:59 +0200)
Found with coccinelle
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
7d3cbce
..
ee11c45
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-483,7
+483,7
@@
static int putval (lcc_connection_t *c, int argc, char **argv)
values_len = 0;
value = tmp;
- while (value !=
0
) {
+ while (value !=
NULL
) {
char *dot, *endptr;
tmp = strchr (value, (int)':');