From 246b04fdac89edc0b605bcd18ddee3382595254e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 25 Aug 2008 15:36:02 +0200 Subject: [PATCH] filecount plugin: Make absolutely sure `status' is never read uninitialized. --- src/filecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0