2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

dump: Use memzero_p

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2011-10-24 11:27:28 +04:00
parent 2dc583092c
commit c475bccd53

View File

@@ -997,7 +997,7 @@ static int finalize_core(pid_t pid, struct list_head *vma_area_list, struct cr_f
}
/* Ending marker */
memset(&ve, 0, sizeof(ve));
memzero_p(&ve);
write_ptr_safe(fd_core, &ve, err);
pr_info("OK (%li written)\n", num);