diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c index 15ca82c4650..8ddda99a8e6 100644 --- a/nshlib/nsh_syscmds.c +++ b/nshlib/nsh_syscmds.c @@ -422,7 +422,7 @@ int cmd_boot(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) /* Go through */ case 1: - fullpath = nsh_getfullpath(vtbl, argv[1]); + fullpath = argv[1] ? nsh_getfullpath(vtbl, argv[1]) : NULL; info.path = fullpath; /* Go through */