From: Ruben Kerkhof Date: Sat, 16 Apr 2016 11:46:07 +0000 (+0200) Subject: collectctl: compare pointer with NULL not 0 X-Git-Tag: collectd-5.6.0~344 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7178c51683e6ec9739046378d42f180a2bdf19a5;p=collectd.git collectctl: compare pointer with NULL not 0 Found with coccinelle --- 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)':');