aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/tests/benchmarks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/tests/benchmarks.c b/app/tests/benchmarks.c
index fed46137..49a1aa92 100644
--- a/app/tests/benchmarks.c
+++ b/app/tests/benchmarks.c
@@ -119,7 +119,7 @@ __NO_INLINE static void bench_cset_wide(void)
__NO_INLINE static void bench_memcpy(void)
{
- uint8_t *buf = malloc(BUFSIZE);
+ uint8_t *buf = calloc(1, BUFSIZE);
uint count = arch_cycle_count();
for (uint i = 0; i < ITER; i++) {