aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-07-27 04:09:45 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-07-27 04:09:45 +0200
commit8dd676c6c3b862846a4a215f5f3a8822fcf8c569 (patch)
treecdb59b0832f9c0b9c932923c4945877f224608d5
parentb278d82c61ab5125b5c7e350b264c1f3d52d682b (diff)
downloadbusybox-w32-8dd676c6c3b862846a4a215f5f3a8822fcf8c569.tar.gz
busybox-w32-8dd676c6c3b862846a4a215f5f3a8822fcf8c569.tar.bz2
busybox-w32-8dd676c6c3b862846a4a215f5f3a8822fcf8c569.zip
hush: add missed "undef"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c
index af6a9a73e..6b910569f 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -4922,11 +4922,11 @@ static int add_till_closing_bracket(o_string *dest, struct in_str *input, unsign
4922 4922
4923#if BASH_DOLLAR_SQUOTE 4923#if BASH_DOLLAR_SQUOTE
4924/* Return code: 1 for "found and parsed", 0 for "seen something else" */ 4924/* Return code: 1 for "found and parsed", 0 for "seen something else" */
4925#if BB_MMU 4925# if BB_MMU
4926#define parse_dollar_squote(as_string, dest, input) \ 4926#define parse_dollar_squote(as_string, dest, input) \
4927 parse_dollar_squote(dest, input) 4927 parse_dollar_squote(dest, input)
4928#define as_string NULL 4928#define as_string NULL
4929#endif 4929# endif
4930static int parse_dollar_squote(o_string *as_string, o_string *dest, struct in_str *input) 4930static int parse_dollar_squote(o_string *as_string, o_string *dest, struct in_str *input)
4931{ 4931{
4932 int start; 4932 int start;
@@ -5009,6 +5009,7 @@ static int parse_dollar_squote(o_string *as_string, o_string *dest, struct in_st
5009 } 5009 }
5010 5010
5011 return 1; 5011 return 1;
5012# undef as_string
5012} 5013}
5013#else 5014#else
5014# #define parse_dollar_squote(as_string, dest, input) 0 5015# #define parse_dollar_squote(as_string, dest, input) 0
@@ -5949,7 +5950,6 @@ static struct pipe *parse_stream(char **pstring,
5949 if (ctx.ctx_res_w == RES_MATCH) 5950 if (ctx.ctx_res_w == RES_MATCH)
5950 goto case_semi; 5951 goto case_semi;
5951#endif 5952#endif
5952
5953 case '}': 5953 case '}':
5954 /* proper use of this character is caught by end_trigger: 5954 /* proper use of this character is caught by end_trigger:
5955 * if we see {, we call parse_group(..., end_trigger='}') 5955 * if we see {, we call parse_group(..., end_trigger='}')