mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 07:25:19 +00:00
Fix error in strrch()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3501 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7273287a4a
commit
75ce6ddea3
1 changed files with 2 additions and 1 deletions
|
|
@ -240,7 +240,8 @@ int cmd_cd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
|
||||
/* Set the new workding directory */
|
||||
|
||||
if (chdir(path) != 0)
|
||||
ret = chdir(path);
|
||||
if (ret != 0)
|
||||
{
|
||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "chdir", NSH_ERRNO);
|
||||
ret = ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue