This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 7cf82fe422 libs/lib_tempbuffer: set `errno` when fails 7cf82fe422 is described below commit 7cf82fe4222955b22eb23d0c93e4f8afabd28b4f Author: wangjianyu3 <wangjian...@xiaomi.com> AuthorDate: Thu Jan 16 13:21:28 2025 +0800 libs/lib_tempbuffer: set `errno` when fails Signed-off-by: wangjianyu3 <wangjian...@xiaomi.com> --- libs/libc/misc/lib_tempbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libc/misc/lib_tempbuffer.c b/libs/libc/misc/lib_tempbuffer.c index fcf9e0f265..470342e521 100644 --- a/libs/libc/misc/lib_tempbuffer.c +++ b/libs/libc/misc/lib_tempbuffer.c @@ -114,6 +114,7 @@ FAR char *lib_get_tempbuffer(size_t nbytes) #ifdef CONFIG_LIBC_TEMPBUFFER_MALLOC return lib_malloc(nbytes); #else + _NX_SETERRNO(ENOMEM); return NULL; #endif }