]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
Avoid undefined behavior after "not a context mod" error in context defs
[lilypond.git] / lily / parser.yy
index 9752da58ed13a1c7ae4819ab647a3ecea02becca..11d8d17125991e7a2eb3510ec3592b49f2335cc3 100644 (file)
@@ -650,6 +650,7 @@ context_mod_embedded:
                        $$ = $1;
                else {
                        parser->parser_error (@1, _ ("not a context mod"));
+                       $$ = Context_mod ().smobbed_copy ();
                }
        }
        ;