mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
7b383d0562
commit
fb6b3ddfd9
1 changed files with 0 additions and 1 deletions
|
|
@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl,
|
|||
if (fd > 0)
|
||||
{
|
||||
nsh_undirect(vtbl, save);
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue