Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nshlib/nsh_syscmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ int cmd_switchboot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
int cmd_boot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
{
struct boardioc_boot_info_s info;
FAR char *fullpath = NULL;

memset(&info, 0, sizeof(info));

Expand All @@ -421,7 +422,8 @@ int cmd_boot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
/* Go through */

case 1:
info.path = argv[1];
fullpath = nsh_getfullpath(vtbl, argv[1]);
info.path = fullpath;

/* Go through */

Expand All @@ -439,6 +441,7 @@ int cmd_boot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
*/

nsh_error(vtbl, g_fmtcmdfailed, argv[0], "boardctl", NSH_ERRNO);
nsh_freefullpath(fullpath);
return ERROR;
}
#endif
Expand Down
Loading