projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80c594
)
filecount plugin: Make absolutely sure `status' is never read uninitialized.
author
Florian Forster
<octo@huhu.verplant.org>
Mon, 25 Aug 2008 13:36:02 +0000
(15:36 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 25 Aug 2008 13:36:02 +0000
(15:36 +0200)
src/filecount.c
patch
|
blob
|
history
diff --git
a/src/filecount.c
b/src/filecount.c
index
3d08cbe
..
2f10912
100644
(file)
--- 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);