From 2c31147f9d9f2d878185c600c2ee84a28d9080aa Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 6 Aug 2014 15:38:00 +0400 Subject: [PATCH] stats: Properly initialize dump stats They all should be zeroed. Signed-off-by: Pavel Emelyanov --- stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.c b/stats.c index 01712150f..011c35950 100644 --- a/stats.c +++ b/stats.c @@ -148,7 +148,7 @@ void write_stats(int what) int init_stats(int what) { if (what == DUMP_STATS) { - dstats = xmalloc(sizeof(*dstats)); + dstats = xzalloc(sizeof(*dstats)); return dstats ? 0 : -1; }