From 016929e043abb8ba778293c29081ca8e227c6e58 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 21 Jun 2016 16:12:51 +0100 Subject: 38734: fix final case clauses terminating with ;& --- Src/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/loop.c') diff --git a/Src/loop.c b/Src/loop.c index 19d7f733e..fa7602e37 100644 --- a/Src/loop.c +++ b/Src/loop.c @@ -660,7 +660,7 @@ execcase(Estate state, int do_exec) execlist(state, 1, ((WC_CASE_TYPE(code) == WC_CASE_OR) && do_exec)); while (!retflag && wc_code(code) == WC_CASE && - WC_CASE_TYPE(code) == WC_CASE_AND) { + WC_CASE_TYPE(code) == WC_CASE_AND && state->pc < end) { state->pc = next; code = *state->pc++; next = state->pc + WC_CASE_SKIP(code); -- cgit 1.4.1