From 89218d7d03b743548ec570d94e720b09b395b8a2 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Tue, 11 Aug 2009 08:07:15 +1000 Subject: [PATCH] Fix uninitialized variables. --- lily/page-layout-problem.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5