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 authored and xiaoxiang781216 committed Jan 16, 2025
1 parent f8e4afb commit 3108c27
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 @@ -616,6 +616,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 3108c27

Please sign in to comment.