aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-10-26 10:32:18 +0100
committerRon Yorston <rmy@pobox.com>2016-10-26 10:32:18 +0100
commit94eac583b29d56a28bf18d41f56ecb2a9d0bd336 (patch)
treeff7f398db61a851d5e0af51a92004207707acfab /editors
parent418f43bea899493bb70a6eec6429b3de412be6e7 (diff)
parenta513bf3c3ce0756c991b21c0ca271e24fedcdb51 (diff)
downloadbusybox-w32-94eac583b29d56a28bf18d41f56ecb2a9d0bd336.tar.gz
busybox-w32-94eac583b29d56a28bf18d41f56ecb2a9d0bd336.tar.bz2
busybox-w32-94eac583b29d56a28bf18d41f56ecb2a9d0bd336.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index de3362cff..84ba125cd 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1518,7 +1518,7 @@ static void chain_group(void)
1518 next_token(TC_SEQSTART); 1518 next_token(TC_SEQSTART);
1519 n2 = parse_expr(TC_SEMICOL | TC_SEQTERM); 1519 n2 = parse_expr(TC_SEMICOL | TC_SEQTERM);
1520 if (t_tclass & TC_SEQTERM) { /* for-in */ 1520 if (t_tclass & TC_SEQTERM) { /* for-in */
1521 if ((n2->info & OPCLSMASK) != OC_IN) 1521 if (!n2 || (n2->info & OPCLSMASK) != OC_IN)
1522 syntax_error(EMSG_UNEXP_TOKEN); 1522 syntax_error(EMSG_UNEXP_TOKEN);
1523 n = chain_node(OC_WALKINIT | VV); 1523 n = chain_node(OC_WALKINIT | VV);
1524 n->l.n = n2->l.n; 1524 n->l.n = n2->l.n;