This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5b59578ec4f3d92d074957b693a6827628d9acd4 Author: huojianchao <[email protected]> AuthorDate: Mon Nov 23 18:07:44 2026 +0800 fs/fs_heap: add the missing blank lines after declarations fs_heap_strdup() and fs_heap_strndup() have no blank line between their declarations and their code, which nxstyle reports. No functional change. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: huojianchao <[email protected]> --- fs/fs_heap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fs_heap.c b/fs/fs_heap.c index 873f1edb7ed..f09321a933f 100644 --- a/fs/fs_heap.c +++ b/fs/fs_heap.c @@ -91,6 +91,7 @@ FAR char *fs_heap_strdup(FAR const char *s) { size_t len = strlen(s) + 1; FAR char *copy = fs_heap_malloc(len); + if (copy != NULL) { memcpy(copy, s, len); @@ -103,6 +104,7 @@ FAR char *fs_heap_strndup(FAR const char *s, size_t size) { size_t len = strnlen(s, size) + 1; FAR char *copy = fs_heap_malloc(len); + if (copy != NULL) { memcpy(copy, s, len);
