diff options
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index ed1a4416c..558601543 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -11959,7 +11959,7 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs) | |||
11959 | smallint pssyntax; /* we are expanding a prompt string */ | 11959 | smallint pssyntax; /* we are expanding a prompt string */ |
11960 | IF_BASH_DOLLAR_SQUOTE(smallint bash_dollar_squote = 0;) | 11960 | IF_BASH_DOLLAR_SQUOTE(smallint bash_dollar_squote = 0;) |
11961 | /* syntax stack */ | 11961 | /* syntax stack */ |
11962 | struct synstack synbase = { .syntax = syntax }; | 11962 | struct synstack synbase = { }; |
11963 | struct synstack *synstack = &synbase; | 11963 | struct synstack *synstack = &synbase; |
11964 | 11964 | ||
11965 | #if ENABLE_ASH_EXPAND_PRMT | 11965 | #if ENABLE_ASH_EXPAND_PRMT |
@@ -11969,6 +11969,8 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs) | |||
11969 | #else | 11969 | #else |
11970 | pssyntax = 0; /* constant */ | 11970 | pssyntax = 0; /* constant */ |
11971 | #endif | 11971 | #endif |
11972 | synstack->syntax = syntax; | ||
11973 | |||
11972 | if (syntax == DQSYNTAX) | 11974 | if (syntax == DQSYNTAX) |
11973 | synstack->dblquote = 1; | 11975 | synstack->dblquote = 1; |
11974 | quotef = 0; | 11976 | quotef = 0; |