Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
fix: crash on tuplet without any note/rest
Browse files Browse the repository at this point in the history
Issue #90.
  • Loading branch information
moinejf committed May 2, 2021
1 parent 8683a6e commit ea9cfd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -6231,6 +6231,10 @@ static void set_tuplet(struct SYMBOL *t)
if (--r <= 0)
break;
}
if (!l) {
error(1, t, "No note in the tuplet");
return;
}
if (!s) {
error(1, t, "End of tune found inside a tuplet");
return;
Expand Down

0 comments on commit ea9cfd0

Please sign in to comment.