This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 6aceeba8a459409d0bfa53ab82663fdfe4e7baf5 Author: Marco Casaroli <[email protected]> AuthorDate: Sun Oct 18 15:40:40 2026 +0200 system/popen: Fix the nxstyle errors in popen.c and its test. Add the blank line after the declarations that nxstyle wants in system/popen/popen.c and testing/libc/popen/popen_test.c. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- system/popen/popen.c | 1 + testing/libc/popen/popen_test.c | 1 + 2 files changed, 2 insertions(+) diff --git a/system/popen/popen.c b/system/popen/popen.c index f4fdfab94..3706a5776 100644 --- a/system/popen/popen.c +++ b/system/popen/popen.c @@ -204,6 +204,7 @@ FILE *popen(FAR const char *command, FAR const char *mode) if (stream == NULL) { int errcode = errno; + dpclose(fd, container->shell); free(container); errno = errcode; diff --git a/testing/libc/popen/popen_test.c b/testing/libc/popen/popen_test.c index bbe3a7e59..7a0a66194 100644 --- a/testing/libc/popen/popen_test.c +++ b/testing/libc/popen/popen_test.c @@ -221,6 +221,7 @@ int main(int argc, FAR char *argv[]) if (argc > 1 && strcmp(argv[1], "--echo") == 0) { int i; + for (i = 2; i < argc; i++) { printf("%s%s", i > 2 ? " " : "", argv[i]);
