aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
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;