]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix uninitialized variables.
authorJoe Neeman <joeneeman@gmail.com>
Mon, 10 Aug 2009 22:07:15 +0000 (08:07 +1000)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 10 Aug 2009 23:51:36 +0000 (09:51 +1000)
lily/page-layout-problem.cc

index d409d3405a7d91a22582d54023598f72ec259742..4e5a86d320bfe49cc4d78e42a36c38c30f7f0f56 100644 (file)
@@ -129,7 +129,7 @@ Page_layout_problem::Page_layout_problem (Paper_book *pb, SCM page_scm, SCM syst
 
   if (elements_.size ())
     {
-      Real bottom_padding;
+      Real bottom_padding = 0;
 
       // TODO: junk bottom-space now that we have bottom-system-spacing?
       // bottom-space has the flexibility that one can do it per-system.
@@ -493,7 +493,7 @@ Page_layout_problem::build_system_skyline (vector<Grob*> const& staves,
   Real first_translation = minimum_translations[0];
   Real last_spaceable_dy = 0;
   Real first_spaceable_dy = 0;
-  bool found_spaceable_staff;
+  bool found_spaceable_staff = false;
 
   for (vsize i = 0; i < staves.size (); ++i)
     {