unsigned int bytes, int rw, unsigned long long ttime,
int fileno, unsigned int bs)
{
- struct io_piece *ipo = malloc(sizeof(*ipo));
+ struct io_piece *ipo;
+ ipo = calloc(1, sizeof(*ipo));
init_ipo(ipo);
ipo->offset = offset * bs;
unsigned long long ttime,
unsigned long *ios, unsigned int *rw_bs)
{
- struct io_piece *ipo = malloc(sizeof(*ipo));
+ struct io_piece *ipo;
unsigned int bs;
int fileno;
+ ipo = calloc(1, sizeof(*ipo));
init_ipo(ipo);
fileno = trace_add_file(td, t->device, &bs);