]> git.donarmstrong.com Git - lilypond.git/commitdiff
Avoid undefined behavior after "not a context mod" error in context defs
authorDavid Kastrup <dak@gnu.org>
Tue, 10 Sep 2013 09:34:02 +0000 (11:34 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 10 Sep 2013 09:40:57 +0000 (11:40 +0200)
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 ();
                }
        }
        ;