From: Florian Forster Date: Thu, 18 Jun 2015 13:31:11 +0000 (+0200) Subject: tail plugin: Make sure variable is initialized. X-Git-Tag: collectd-5.5.1~100 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=88a41ccbc4b6cb737a82e124a5b1731eeb3dbeb6;p=collectd.git tail plugin: Make sure variable is initialized. This was introduced by the merge (09c6a320f3cb36b5dbb2c2ce43858f33be7acf9b). --- diff --git a/src/tail.c b/src/tail.c index e5f24d11..3904f1be 100644 --- a/src/tail.c +++ b/src/tail.c @@ -243,7 +243,7 @@ static int ctail_config_add_file (oconfig_item_t *ci) for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - int status; + int status = 0; if (strcasecmp ("Instance", option->key) == 0) status = cf_util_get_string (option, &plugin_instance);