From ec74ed905b3313419936719cc115fe3f8ec78301 Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 9 Sep 2020 17:42:41 +0200 Subject: [PATCH] Fix an impossible NULL deref --- src/midi/fluid_midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/midi/fluid_midi.c b/src/midi/fluid_midi.c index ad92b648..c4fddb03 100644 --- a/src/midi/fluid_midi.c +++ b/src/midi/fluid_midi.c @@ -1605,7 +1605,7 @@ fluid_track_send_events(fluid_track_t *track, } } - if(event->type == MIDI_SET_TEMPO) + if(event->type == MIDI_SET_TEMPO && player != NULL) { fluid_player_set_midi_tempo(player, event->param1); }