From e239d2a33b1df08b78c5c67f19f1225096550bdd Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 17:46:02 +0200 Subject: [PATCH] set expression.next to NULL in ast_block_set_type if it won't be set to a new value --- ast.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ast.c b/ast.c index 52023ff..851171e 100644 --- a/ast.c +++ b/ast.c @@ -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; } -- 2.39.2