From: Joe Neeman Date: Mon, 10 Aug 2009 22:07:15 +0000 (+1000) Subject: Fix uninitialized variables. X-Git-Tag: release/2.13.4-1~179^2~117 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=89218d7d03b743548ec570d94e720b09b395b8a2;p=lilypond.git Fix uninitialized variables. --- diff --git a/lily/page-layout-problem.cc b/lily/page-layout-problem.cc index d409d3405a..4e5a86d320 100644 --- a/lily/page-layout-problem.cc +++ b/lily/page-layout-problem.cc @@ -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 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) {