X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Ffio-engine-posixaio.c;h=894a410a459117571518c00b66abe2d790a81183;hp=401cd866ba549ee193098f3af54998c6e6aef2fd;hb=cb781c758e5df7ff4c6f655c1e4f9df3043a4be9;hpb=3c9b60c1fb144950ca51220ffa18f485672c3ba6 diff --git a/engines/fio-engine-posixaio.c b/engines/fio-engine-posixaio.c index 401cd866..894a410a 100644 --- a/engines/fio-engine-posixaio.c +++ b/engines/fio-engine-posixaio.c @@ -171,7 +171,9 @@ static int fio_posixaio_init(struct thread_data *td) { struct posixaio_data *pd = malloc(sizeof(*pd)); + memset(pd, 0, sizeof(*pd)); pd->aio_events = malloc(td->iodepth * sizeof(struct io_u *)); + memset(pd->aio_events, 0, td->iodepth * sizeof(struct io_u *)); td->io_ops->data = pd; return 0;