summaryrefslogtreecommitdiff
path: root/Src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/lex.c b/Src/lex.c
index c929bb9ba..5b6d3a69b 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1345,8 +1345,11 @@ gettokstr(int c, int sub)
break;
}
brk:
- if (errflag)
+ if (errflag) {
+ while(bct-- >= in_brace_param)
+ cmdpop();
return LEXERR;
+ }
hungetc(c);
if (unmatched)
zerr("unmatched %c", unmatched);