mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 06:40:49 +00:00
initialize the ast_expression node in ast_shallow_type properly as well
This commit is contained in:
parent
9ffb79111f
commit
3effcd2342
1 changed files with 1 additions and 0 deletions
1
ast.c
1
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;
|
||||
|
|
Loading…
Reference in a new issue