From 0855c93232e5a763a718c3d73854db64c9f2182a Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@jwilk.net>
Date: Sun, 16 Jul 2017 20:25:04 +0200
Subject: [PATCH] Remove const qualifier from parent_scope

If parent_scope is declared as const, the compiler may emit code that
assumes the value doesn't change, i.e. dereferencing the null pointer.
---
 src/output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/output.c b/src/output.c
index b825ca2..ed2e48e 100644
--- a/src/output.c
+++ b/src/output.c
@@ -288,7 +288,7 @@ void output_open_scope(const char *scope_name, output_scope_type_e scope_type) {
 	scope->depth = scope_depth + 1;
 
 	if (scope_depth > 0) {
-		output_scope_t * const parent_scope = NULL;
+		output_scope_t * parent_scope = NULL;
 		STACK_PEEK(g_scope_stack, (void *)&parent_scope);
 		scope->parent_type = parent_scope->type;
 	}
