Skip to content

Commit

Permalink
nshlib/nsh_parse.c: Replacement implementation for 9defae8. This adde…
Browse files Browse the repository at this point in the history
…s conditional compilation on the definition of g_nullstring[] to avoid the warning. Suggested by SUZUKI Y <NBG03015@nifty.ne.jp>
  • Loading branch information
gregory-nutt committed Dec 19, 2019
1 parent 6bfd616 commit 2a462c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nshlib/nsh_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ 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)
static const char g_nullstring[] = "";
#endif

/****************************************************************************
* Public Data
Expand Down

0 comments on commit 2a462c7

Please sign in to comment.