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; }