about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-05 09:31:21 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-10-05 09:31:21 +0000
commita98a3049d977fc202079a639d319af44981200bd (patch)
treef22159a789f5f117005c0bed64553af8c3457709 /Src
parenta93e62c630b6362f927023d322956edbdc96acbf (diff)
downloadzsh-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.c5
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;
 }