about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-10-23 16:17:03 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-10-23 16:17:03 +0000
commit14e13fb40743e069e45b0790f206f14b5f8a887a (patch)
tree7069ecfaf967a65f92516bd8b2f8ae8a86e3c18c /Src
parentc1441714b523d9a390165846632dc18ea10ba91b (diff)
downloadzsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.gz
zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.xz
zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.zip
Fix infinite loop on `case' with xtrace.
Diffstat (limited to 'Src')
-rw-r--r--Src/loop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Src/loop.c b/Src/loop.c
index 57ee11695..89ef59689 100644
--- a/Src/loop.c
+++ b/Src/loop.c
@@ -553,9 +553,8 @@ execcase(Estate state, int do_exec)
 	    printprompt4();
 	    fprintf(xtrerr, "case %s (%s)\n", word, pat2);
 	    fflush(xtrerr);
-	    state->pc++;
-	} else
-	    state->pc += 2;
+	}
+	state->pc += 2;
 
 	if (*spprog != dummy_patprog1 && *spprog != dummy_patprog2)
 	    pprog = *spprog;