X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=ee11c45da0753ab61f6eafc8035883ebe0482410;hb=354f9991530248e45207d236eb74c1cc3d5238ef;hp=7d3cbce8c1551ca062c199882fb87b576e8e97e8;hpb=50345eec33951b964e2829e83c30399b71f2baba;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index 7d3cbce8..ee11c45d 100644 --- 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)':');