From: Florian Forster Date: Thu, 18 Jun 2015 08:27:42 +0000 (+0200) Subject: tail plugin: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~101^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c841b9284f77e3e5f123c162f2f50e03d3b9f0c;p=collectd.git tail plugin: Fix "Dead assignment" warning. --- diff --git a/src/tail.c b/src/tail.c index bcb15725..5b9dc539 100644 --- 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) {