mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
apps/nshlib/nsh_parse.c: Correct an error found in build testing. Commit 2a462c78aa
was insufficient. It was a mistake to revert Xiang's change of commit 9defae8af6
. But we are on a different vector now.
This commit is contained in:
@@ -92,6 +92,15 @@
|
||||
# define NSH_MEMLIST_FREE(m)
|
||||
#endif
|
||||
|
||||
/* Do we need g_nullstring[]? */
|
||||
|
||||
#undef NEED_NULLSTRING
|
||||
#if defined(NSH_HAVE_VARS) || defined(CONFIG_NSH_CMDPARMS)
|
||||
# define NEED_NULLSTRING 1
|
||||
#elif !defined(CONFIG_NSH_ARGCAT) || !defined(HAVE_MEMLIST)
|
||||
# define NEED_NULLSTRING 1
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
@@ -222,7 +231,7 @@ static const char g_exitstatus[] = "?";
|
||||
static const char g_success[] = "0";
|
||||
static const char g_failure[] = "1";
|
||||
#endif
|
||||
#if defined(NSH_HAVE_VARS) || defined(CONFIG_NSH_CMDPARMS)
|
||||
#ifdef NEED_NULLSTRING
|
||||
static const char g_nullstring[] = "";
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user