On 08/05/2018 09:35 PM, Simon Goldschmidt wrote:
> 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
> ---
>
> common/malloc_simple.c | 3 ++-
> 1 file changed, 2
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
---
common/malloc_simple.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/malloc_simple.c
2 matches
Mail list logo