X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=ltp%2Faio-stress.c;h=d08843a8a2f84f15f24a964bc9ae09adadf2ac31;hp=ebff1bd42a92e51cdd0de72e2419b840e91b19f2;hb=4544179a64dcdef96b59c072baf3ef33e1b211fc;hpb=a72607fadab2773135d0f484e1a82193e9940dfb diff --git a/ltp/aio-stress.c b/ltp/aio-stress.c index ebff1bd4..d08843a8 100644 --- a/ltp/aio-stress.c +++ b/ltp/aio-stress.c @@ -1413,9 +1413,9 @@ int main(int ac, char **av) num_threads); } - t = malloc(num_threads * sizeof(*t)); + t = calloc(num_threads, sizeof(*t)); if (!t) { - perror("malloc"); + perror("calloc"); exit(1); } global_thread_info = t;