From 8ddd37a8d389a9c183394c87b299845709222e67 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 18 Aug 2010 10:22:11 +0200 Subject: [PATCH] collectdctl: Fix comparison with uninitialized variable. --- src/collectdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectdctl.c b/src/collectdctl.c index 60b1e64e..fe118816 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -443,7 +443,7 @@ static int putval (lcc_connection_t *c, int argc, char **argv) vl.time = strtol (argv[i], &endptr, 0); - if (endptr == value) { + if (endptr == argv[i]) { fprintf (stderr, "ERROR: Failed to parse time as number: %s.\n", argv[i]); return (-1); -- 2.30.2