]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
initialize the ast_expression node in ast_type_copy properly
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 14:57:22 +0000 (16:57 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 14:57:22 +0000 (16:57 +0200)
ast.c

diff --git a/ast.c b/ast.c
index 8f65b8130c9b146e984ea9edad8c76ae9159d38f..01e3332132e054caa7b570b7106677931ca3cd84 100644 (file)
--- 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;