aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 3554f03..d10a82f 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -47,7 +47,8 @@ parseblk(struct ast *ast, struct lexemes toks)
idx_t_ i = astalloc(ast);
ast->lexemes[i] = toksidx;
ast->kinds[i] = ASTBLK;
- ast->kids[i].lhs = ast->kids[i].rhs = AST_EMPTY;
+ ast->kids[i].lhs = AST_EMPTY;
+ ast->kids[i].rhs = 0;
if (toks.kinds[toksidx++] != LEXLBRACE)
err("parser: Expected left brace");