From: Janek WarchoĊ‚ Date: Wed, 3 Sep 2014 22:17:55 +0000 (+0200) Subject: Initialize main_head to 0 (in Note_column::calc_main_extent) X-Git-Tag: release/2.19.14-1~30 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=dc067afa0915bb0ecbd34d2f7f413f616d893c32;p=lilypond.git Initialize main_head to 0 (in Note_column::calc_main_extent) Make sure that the pointer won't be assigned a random value. --- 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