X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=ee11c45da0753ab61f6eafc8035883ebe0482410;hb=8b3afb76805d0e0bbaf2b7ef3f37c07c1ebf0ffb;hp=7d3cbce8c1551ca062c199882fb87b576e8e97e8;hpb=4ea7aebc3f05d082f64a62c679f414cf7cb0e631;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)':');