t/fiotestlib: add ability to ingest iops logs
[fio.git] / verify.c
index e7e4c69ca66ee6b76ee1ad087ebdc2e42ba5c181..2848b686123223fec6b76fd209dd2d7fd6b54970 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -1595,8 +1595,7 @@ struct all_io_list *get_all_io_list(int save_mask, size_t *sz)
        *sz = sizeof(*rep);
        *sz += nr * sizeof(struct thread_io_list);
        *sz += depth * sizeof(struct file_comp);
-       rep = malloc(*sz);
-       memset(rep, 0, *sz);
+       rep = calloc(1, *sz);
 
        rep->threads = cpu_to_le64((uint64_t) nr);