2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

stats: Properly initialize dump stats

They all should be zeroed.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2014-08-06 15:38:00 +04:00
parent c9228dd809
commit 2c31147f9d

View File

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