X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=ee11c45da0753ab61f6eafc8035883ebe0482410;hb=25246d8c037c01f96e2964eb1110c174ff494843;hp=7d3cbce8c1551ca062c199882fb87b576e8e97e8;hpb=10b10a6718dbb87c6890d4bc821a6e21c8b7b527;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)':');