fsstress: translate flags in fiemap_f
[xfstests-dev.git] / ltp / aio-stress.c
index ebff1bd42a92e51cdd0de72e2419b840e91b19f2..d08843a8a2f84f15f24a964bc9ae09adadf2ac31 100644 (file)
@@ -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;