mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 14:42:20 +08:00
apps/nshlib/nsh_parse.c: Fix a warning (really a bug) detected in build testing.
This commit is contained in:
@@ -1269,7 +1269,7 @@ static FAR char *nsh_argexpand(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline,
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NSH_VARS
|
#ifdef NSH_HAVE_VARS
|
||||||
/* Check if we encountered a reference to an environment variable */
|
/* Check if we encountered a reference to an environment variable */
|
||||||
|
|
||||||
if (*ptr == '$')
|
if (*ptr == '$')
|
||||||
|
Reference in New Issue
Block a user