summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/debug/io-stats/src/io-stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index 5e0aef84f9f..863f77a2ae1 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -988,7 +988,7 @@ io_stats_dump_stats_to_dict (xlator_t *this, dict_t *resp,
ios_stats_type_t flags, int32_t list_cnt)
{
struct ios_conf *conf = NULL;
- int cnt = -1;
+ int cnt = 0;
char key[256];
struct ios_stat_head *list_head = NULL;
struct ios_stat_list *entry = NULL;