aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2014-06-26 16:40:28 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2014-06-26 16:40:28 +0200
commit5f8daefb835687e428215f90d26fdf1f0206149d (patch)
treeb42723b59183e1bcf6196b37b34113d5a843fabb /editors/awk.c
parent0b0ccd457016d6a4eaa3e79bd65a852ea7d4294b (diff)
downloadbusybox-5f8daefb835687e428215f90d26fdf1f0206149d.tar.gz
awk: fix handling of "if ... break ; else ..." - closes 7226
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index d0e3781e7..f487163af 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1540,12 +1540,14 @@ static void chain_group(void)
debug_printf_parse("%s: OC_BREAK\n", __func__);
n = chain_node(OC_EXEC);
n->a.n = break_ptr;
+ chain_expr(t_info);
break;
case OC_CONTINUE:
debug_printf_parse("%s: OC_CONTINUE\n", __func__);
n = chain_node(OC_EXEC);
n->a.n = continue_ptr;
+ chain_expr(t_info);
break;
/* delete, next, nextfile, return, exit */