mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
fix conditional jump depending on uninitialized variable
This commit is contained in:
parent
33450117e9
commit
a5436021a5
1 changed files with 1 additions and 1 deletions
|
@ -1237,7 +1237,7 @@ fluid_synth_noteoff_LOCAL(fluid_synth_t *synth, int chan, int key)
|
|||
{
|
||||
/* channel is poly and legato CC is Off) */
|
||||
/* removes the note from the monophonic list */
|
||||
if(key == fluid_channel_last_note(channel))
|
||||
if(channel->n_notes && key == fluid_channel_last_note(channel))
|
||||
{
|
||||
fluid_channel_clear_monolist(channel);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue