projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e216f30
)
collectdctl: Fix comparison with uninitialized variable.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 18 Aug 2010 08:22:11 +0000
(10:22 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 18 Aug 2010 08:23:37 +0000
(10:23 +0200)
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
60b1e64
..
fe11881
100644
(file)
--- 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);