This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.1 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f0b6f7453f2e0c2b896d48a9ff3d23ee5e161113 Author: Marco Casaroli <[email protected]> AuthorDate: Mon Oct 12 16:54:22 2026 +0200 mm/umm_heap: Fix the nxstyle errors in umm_zalloc.c. Whitespace only, before the next commit touches the file. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- mm/umm_heap/umm_zalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/umm_heap/umm_zalloc.c b/mm/umm_heap/umm_zalloc.c index 7be29487aa7..a8327db7ca0 100644 --- a/mm/umm_heap/umm_zalloc.c +++ b/mm/umm_heap/umm_zalloc.c @@ -58,9 +58,10 @@ FAR void *zalloc(size_t size) /* Use malloc() because it implements the sbrk() logic */ FAR void *mem = malloc(size); + if (mem) { - memset(mem, 0, size); + memset(mem, 0, size); } return mem;
