aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTravis Geiselbrecht <geist@foobox.com>2015-11-24 15:08:38 -0800
committerTravis Geiselbrecht <geist@foobox.com>2015-11-24 15:08:38 -0800
commit4ab14424bdcdb1ab51fdc84d506338a46e689609 (patch)
tree91f3a0204cd21d6bf483e058293af071221ebe97 /app
parent6cdc5cd1daaf22f56422301d3dac67c3573ef290 (diff)
downloadcommon-4ab14424bdcdb1ab51fdc84d506338a46e689609.tar.gz
[cppcheck] clean up a few suggestions from cppcheck
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++) {