We only fill it partially sometimes, so ensure that we clear
the whole thing before writing it out. This fixes valgrind
complaining about writing unitialized memory.
Signed-off-by: Jens Axboe <axboe@fb.com>
*sz += nr * sizeof(struct thread_io_list);
*sz += depth * sizeof(uint64_t);
rep = malloc(*sz);
*sz += nr * sizeof(struct thread_io_list);
*sz += depth * sizeof(uint64_t);
rep = malloc(*sz);
rep->threads = cpu_to_le64((uint64_t) nr);
rep->threads = cpu_to_le64((uint64_t) nr);