From 4c841b9284f77e3e5f123c162f2f50e03d3b9f0c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 10:27:42 +0200 Subject: [PATCH] tail plugin: Fix "Dead assignment" warning. --- src/tail.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.11.0