From dc067afa0915bb0ecbd34d2f7f413f616d893c32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Janek=20Warcho=C5=82?= Date: Thu, 4 Sep 2014 00:17:55 +0200 Subject: [PATCH] Initialize main_head to 0 (in Note_column::calc_main_extent) Make sure that the pointer won't be assigned a random value. --- lily/note-column.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/note-column.cc b/lily/note-column.cc index 760e37dc19..73b1387571 100644 --- a/lily/note-column.cc +++ b/lily/note-column.cc @@ -164,7 +164,7 @@ Note_column::first_head (Grob *me) Interval Note_column::calc_main_extent (Grob *me) { - Grob *main_head; + Grob *main_head = 0; if (get_stem (me)) main_head = first_head (me); else -- 2.39.5