mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
nshlib: Fix a typo error of redirect
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
0f5a786347
commit
2bfe2c2ed0
1 changed files with 3 additions and 1 deletions
|
|
@ -2855,10 +2855,12 @@ static int nsh_parse_command(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline)
|
|||
vtbl->np.np_redir_out = redirect_out_save;
|
||||
}
|
||||
|
||||
/* Free the redirected input file path */
|
||||
|
||||
if (redirfile_in)
|
||||
{
|
||||
nsh_freefullpath(redirfile_in);
|
||||
vtbl->np.np_redir_out = redirect_in_save;
|
||||
vtbl->np.np_redir_in = redirect_in_save;
|
||||
}
|
||||
|
||||
dynlist_free:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue