Commit 2c31147f authored by Pavel Emelyanov's avatar Pavel Emelyanov

stats: Properly initialize dump stats

They all should be zeroed.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c9228dd8
...@@ -148,7 +148,7 @@ void write_stats(int what) ...@@ -148,7 +148,7 @@ void write_stats(int what)
int init_stats(int what) int init_stats(int what)
{ {
if (what == DUMP_STATS) { if (what == DUMP_STATS) {
dstats = xmalloc(sizeof(*dstats)); dstats = xzalloc(sizeof(*dstats));
return dstats ? 0 : -1; return dstats ? 0 : -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment