From 3effcd234298c5b135dd9ebfe2ade11986136f75 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 16:58:17 +0200 Subject: [PATCH] initialize the ast_expression node in ast_shallow_type properly as well --- ast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ast.c b/ast.c index 01e3332..bca493e 100644 --- a/ast.c +++ b/ast.c @@ -108,6 +108,7 @@ static ast_value* ast_value_copy(const ast_value *self) static ast_expression* ast_shallow_type(lex_ctx ctx, int vtype) { ast_instantiate(ast_expression, ctx, ast_expression_delete_full); + ast_expression_init(self, NULL); self->expression.codegen = NULL; self->expression.next = NULL; self->expression.vtype = vtype; -- 2.39.2