From: Wolfgang (Blub) Bumiller <blub@speed.at>
Date: Sat, 18 Aug 2012 15:46:02 +0000 (+0200)
Subject: set expression.next to NULL in ast_block_set_type if it won't be set to a new value
X-Git-Tag: 0.1-rc1~194
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e239d2a33b1df08b78c5c67f19f1225096550bdd;p=xonotic%2Fgmqcc.git

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

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;
 }