summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 692e480)
raw | patch | inline | side by side (parent: 692e480)
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 7d3cbce8c1551ca062c199882fb87b576e8e97e8..ee11c45da0753ab61f6eafc8035883ebe0482410 100644 (file)
--- a/src/collectdctl.c
+++ b/src/collectdctl.c
values_len = 0;
value = tmp;
- while (value != 0) {
+ while (value != NULL) {
char *dot, *endptr;
tmp = strchr (value, (int)':');