Skip to content

Commit

Permalink
apps/nshlib: Save result and return ERROR if lib_get_tempbuffer() f…
Browse files Browse the repository at this point in the history
…ails

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 committed Jan 16, 2025
1 parent 6dfab98 commit c27607e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nshlib/nsh_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ static int nsh_execute(FAR struct nsh_vtbl_s *vtbl,
{
nsh_error(vtbl, g_fmtcmdoutofmemory, sh_cmd);
ret = -errno;
goto close_redir;
}

sh_arg2[0] = '\0';
Expand Down

0 comments on commit c27607e

Please sign in to comment.