summaryrefslogtreecommitdiff
path: root/test/fops/fops.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fops/fops.c')
-rw-r--r--test/fops/fops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/fops/fops.c b/test/fops/fops.c
index 3333ff16858..3c4de161423 100644
--- a/test/fops/fops.c
+++ b/test/fops/fops.c
@@ -59,10 +59,8 @@ fop_start(u_int nthreads)
tids = NULL; /* Silence GCC 4.1 warning. */
/* Create statistics and thread structures. */
- if ((run_stats = calloc(
- (size_t)(nthreads), sizeof(*run_stats))) == NULL ||
- (tids = calloc((size_t)(nthreads), sizeof(*tids))) == NULL)
- testutil_die(errno, "calloc");
+ run_stats = dcalloc((size_t)(nthreads), sizeof(*run_stats));
+ tids = dcalloc((size_t)(nthreads), sizeof(*tids));
(void)gettimeofday(&start, NULL);