diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-23 16:17:03 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-10-23 16:17:03 +0000 |
| commit | 14e13fb40743e069e45b0790f206f14b5f8a887a (patch) | |
| tree | 7069ecfaf967a65f92516bd8b2f8ae8a86e3c18c /Src/loop.c | |
| parent | zero %n value when reusing printf format (16122) (diff) | |
| download | zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.gz zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.bz2 zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.lz zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.xz zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.tar.zst zsh-14e13fb40743e069e45b0790f206f14b5f8a887a.zip | |
Fix infinite loop on `case' with xtrace.
Diffstat (limited to 'Src/loop.c')
| -rw-r--r-- | Src/loop.c | 5 |
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; |
