This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new fb6b3ddfd nsh/script: remove double close for output fd
fb6b3ddfd is described below
commit fb6b3ddfd9b79a5632618b34cc87de5256e36ec2
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Fri Mar 14 11:09:02 2025 +0800
nsh/script: remove double close for output fd
the output fd had been closed in nsh_closeifnotclosed, so
remove double close.
Signed-off-by: dongjiuzhu1 <[email protected]>
---
nshlib/nsh_script.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/nshlib/nsh_script.c b/nshlib/nsh_script.c
index a049de624..a0db4d6d0 100644
--- a/nshlib/nsh_script.c
+++ b/nshlib/nsh_script.c
@@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl,
if (fd > 0)
{
nsh_undirect(vtbl, save);
- close(fd);
}
}