initialize the ast_expression node in ast_type_copy properly

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 16:57:22 +02:00
parent 4cf017bb6b
commit 9ffb79111f

1
ast.c
View file

@ -125,6 +125,7 @@ static ast_expression* ast_type_copy(lex_ctx ctx, const ast_expression *ex)
else
{
ast_instantiate(ast_expression, ctx, ast_expression_delete_full);
ast_expression_init(self, NULL);
fromex = &ex->expression;
selfex = &self->expression;