]> git.donarmstrong.com Git - lilypond.git/commitdiff
Initialize main_head to 0 (in Note_column::calc_main_extent)
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Wed, 3 Sep 2014 22:17:55 +0000 (00:17 +0200)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Mon, 8 Sep 2014 06:46:25 +0000 (08:46 +0200)
Make sure that the pointer won't be assigned a random value.

lily/note-column.cc

index 760e37dc1956c045d51d3250bee9fad5269ee73b..73b138757189d839ea510d86ef8d0a88ac116804 100644 (file)
@@ -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