Skip to content

Commit 2a462c7

Browse files
committed
nshlib/nsh_parse.c: Replacement implementation for 9defae8. This addes conditional compilation on the definition of g_nullstring[] to avoid the warning. Suggested by SUZUKI Y <NBG03015@nifty.ne.jp>
1 parent 6bfd616 commit 2a462c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nshlib/nsh_parse.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ static const char g_exitstatus[] = "?";
222222
static const char g_success[] = "0";
223223
static const char g_failure[] = "1";
224224
#endif
225+
#if defined(NSH_HAVE_VARS) || defined(CONFIG_NSH_CMDPARMS)
225226
static const char g_nullstring[] = "";
227+
#endif
226228

227229
/****************************************************************************
228230
* Public Data

0 commit comments

Comments
 (0)