From: Florian Forster Date: Wed, 18 Aug 2010 08:22:11 +0000 (+0200) Subject: collectdctl: Fix comparison with uninitialized variable. X-Git-Tag: collectd-5.0.0-beta0~47 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8ddd37a8d389a9c183394c87b299845709222e67;p=collectd.git collectdctl: Fix comparison with uninitialized variable. --- 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);