]> git.donarmstrong.com Git - lilypond.git/commitdiff
(get_header): copy module, instead of
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 16 Aug 2005 15:59:59 +0000 (15:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 16 Aug 2005 15:59:59 +0000 (15:59 +0000)
returning it.

lily/lily-parser.cc

index 4e3d6c58cba621597db4fdc90382938f8dd44246..059d5a8153d945e9d6066c26497d2eab630b6bab 100644 (file)
@@ -218,6 +218,12 @@ get_header (Lily_parser *parser)
   SCM id = parser->lexer_->lookup_identifier ("$defaultheader");
   if (!ly_is_module (id))
     id = ly_make_anonymous_module (be_safe_global);
-
+  else
+    {
+      nid = ly_make_anonymous_module (false);
+      ly_module_copy(nid,id);
+      id = nid;
+    }
+  
   return id;
 }