diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-05 09:31:21 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-05 09:31:21 +0000 |
commit | a98a3049d977fc202079a639d319af44981200bd (patch) | |
tree | f22159a789f5f117005c0bed64553af8c3457709 /Src | |
parent | a93e62c630b6362f927023d322956edbdc96acbf (diff) | |
download | zsh-a98a3049d977fc202079a639d319af44981200bd.tar.gz zsh-a98a3049d977fc202079a639d319af44981200bd.tar.xz zsh-a98a3049d977fc202079a639d319af44981200bd.zip |
don't return invalid Eprog after parse error (12898)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/parse.c b/Src/parse.c index 7ea6b28d3..15f1eba41 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -478,9 +478,10 @@ par_event(void) } else { int oec = ecused; - par_event(); - if (ecused == oec) + if (!par_event()) { + ecused = oec; ecbuf[p] |= wc_bdata(Z_END); + } } return 1; } |