Skip to content

Commit

Permalink
fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed May 8, 2015
1 parent d6240bf commit 016508a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gregoriotex/gregoriotex-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,9 @@ static inline void number_last_note(gregorio_glyph *current_glyph, char *number,
*number = 1;
return;
}
if (!no_ambitus_one && (num == 18 || !current_note->previous || current_note->previous->u.note.pitch -
if (!current_note->previous || (!no_ambitus_one && (num == 18 || current_note->previous->u.note.pitch -
current_note->u.note.pitch == 1 ||
current_note->u.note.pitch - current_note->previous->u.note.pitch == 1)) {
current_note->u.note.pitch - current_note->previous->u.note.pitch == 1))) {
*number = num;
return;
}
Expand Down

0 comments on commit 016508a

Please sign in to comment.