From 7178c51683e6ec9739046378d42f180a2bdf19a5 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 16 Apr 2016 13:46:07 +0200 Subject: [PATCH] collectctl: compare pointer with NULL not 0 Found with coccinelle --- src/collectdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)':'); -- 2.30.2