diff options
author | Travis Geiselbrecht <geist@foobox.com> | 2015-11-24 15:08:38 -0800 |
---|---|---|
committer | Travis Geiselbrecht <geist@foobox.com> | 2015-11-24 15:08:38 -0800 |
commit | 4ab14424bdcdb1ab51fdc84d506338a46e689609 (patch) | |
tree | 91f3a0204cd21d6bf483e058293af071221ebe97 /app | |
parent | 6cdc5cd1daaf22f56422301d3dac67c3573ef290 (diff) | |
download | common-4ab14424bdcdb1ab51fdc84d506338a46e689609.tar.gz |
[cppcheck] clean up a few suggestions from cppcheck
Diffstat (limited to 'app')
-rw-r--r-- | app/tests/benchmarks.c | 2 |
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++) { |