1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-04-10 13:40:00 +02:00
Files
u-boot-megous/common/malloc_simple.c
Simon Goldschmidt f3da76ea8b malloc_simple: calloc: don't call memset if malloc failed
malloc_simple() can return 0 if out of memory. Don't call memset
from calloc() in this case but rely on the caller checking
the return value.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2018-08-24 13:20:19 -04:00

1.2 KiB