projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c308353
)
tail plugin: Fix "Dead assignment" warning.
author
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 08:27:42 +0000
(10:27 +0200)
committer
Florian Forster
<octo@collectd.org>
Thu, 18 Jun 2015 08:28:09 +0000
(10:28 +0200)
src/tail.c
patch
|
blob
|
history
diff --git
a/src/tail.c
b/src/tail.c
index
bcb1572
..
5b9dc53
100644
(file)
--- a/
src/tail.c
+++ b/
src/tail.c
@@
-211,7
+211,6
@@
static int ctail_config_add_file (oconfig_item_t *ci)
cu_tail_match_t *tm;
char *plugin_instance = NULL;
int num_matches = 0;
- int status;
int i;
if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_STRING))
@@
-228,10
+227,10
@@
static int ctail_config_add_file (oconfig_item_t *ci)
return (-1);
}
- status = 0;
for (i = 0; i < ci->children_num; i++)
{
oconfig_item_t *option = ci->children + i;
+ int status;
if (strcasecmp ("Match", option->key) == 0)
{