]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/cons.hh
release: 1.3.83
[lilypond.git] / flower / include / cons.hh
index 266b9ce51c7a5017181f42a8954abffb6e3409fd..a2ebc352d7b423db6ae89fb476b614639036d0f0 100644 (file)
@@ -75,7 +75,7 @@ template<class T> int cons_list_size_i (Cons<T> *l)
 template<class T>
 Cons<T> * last_cons (Cons<T> * head)
 {
-  while (head->next_)
+  while (head && head->next_)
     {
       head = head->next_;
     }