set expression.next to NULL in ast_block_set_type if it won't be set to a new value

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 17:46:02 +02:00
parent 0e3bc87c75
commit e239d2a33b

2
ast.c
View file

@ -621,6 +621,8 @@ bool ast_block_set_type(ast_block *self, ast_expression *from)
if (!self->expression.next)
return false;
}
else
self->expression.next = NULL;
return true;
}