From 20b2c1c1d8097931aba33693708d695fc390d410 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Tue, 10 Sep 2013 11:34:02 +0200 Subject: [PATCH] Avoid undefined behavior after "not a context mod" error in context defs --- lily/parser.yy | 1 + 1 file changed, 1 insertion(+) diff --git a/lily/parser.yy b/lily/parser.yy index 9752da58ed..11d8d17125 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -650,6 +650,7 @@ context_mod_embedded: $$ = $1; else { parser->parser_error (@1, _ ("not a context mod")); + $$ = Context_mod ().smobbed_copy (); } } ; -- 2.39.2