summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-01-05 19:07:35 +0000
committerRoy Marples <roy@marples.name>2018-01-05 19:07:35 +0000
commit1583ad84fa27bd908d377a6c7f53333c3033a7ad (patch)
treee6c1b71322a599e9f38761bbba406989ca790720 /tests
parenta831c3f16b32eefc12a6e561b3c62ae15bee2609 (diff)
downloaddhcpcd-1583ad84fa27bd908d377a6c7f53333c3033a7ad.tar.xz
eloop-bench: use calloc
Diffstat (limited to 'tests')
-rw-r--r--tests/eloop-bench/eloop-bench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/eloop-bench/eloop-bench.c b/tests/eloop-bench/eloop-bench.c
index 813fedf1..0f90e824 100644
--- a/tests/eloop-bench/eloop-bench.c
+++ b/tests/eloop-bench/eloop-bench.c
@@ -149,7 +149,7 @@ main(int argc, char **argv)
if (nactive > npipes)
nactive = npipes;
- pipes = malloc(sizeof(*p) * npipes);
+ pipes = calloc(npipes, sizeof(*p));
if (pipes == NULL)
err(EXIT_FAILURE, "malloc");