mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-06-01 09:32:30 +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) */
|
/* channel is poly and legato CC is Off) */
|
||||||
/* removes the note from the monophonic list */
|
/* 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);
|
fluid_channel_clear_monolist(channel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue