From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 14:57:22 +0000 (+0200) Subject: initialize the ast_expression node in ast_type_copy properly X-Git-Tag: 0.1-rc1~199 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ffb79111f0eb22949c4528df70ca97c1db8385b;p=xonotic%2Fgmqcc.git initialize the ast_expression node in ast_type_copy properly --- diff --git a/ast.c b/ast.c index 8f65b81..01e3332 100644 --- a/ast.c +++ b/ast.c @@ -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;