From: Florian Forster Date: Mon, 25 Aug 2008 13:36:02 +0000 (+0200) Subject: filecount plugin: Make absolutely sure `status' is never read uninitialized. X-Git-Tag: collectd-4.5.0~40 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=246b04fdac89edc0b605bcd18ddee3382595254e;p=collectd.git filecount plugin: Make absolutely sure `status' is never read uninitialized. --- diff --git a/src/filecount.c b/src/filecount.c index 3d08cbe2..2f10912b 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -342,10 +342,10 @@ static int fc_config_add_dir (oconfig_item_t *ci) dir->mtime = 0; dir->size = 0; + status = 0; for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Instance", option->key) == 0) status = fc_config_add_dir_instance (dir, option);