Reorder conditions to prevent uninitialised read

master
Peter Nelson 2010-01-26 18:48:41 +00:00
parent e080007b4f
commit 5f285d05de
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ int CVOut::process(jack_nframes_t nframes)
if (0 < event_count) jack_midi_event_get(&ev, midi_in, event_index);
for (jack_nframes_t f = 0; f < nframes; f++) {
while (ev.time == f && event_index < event_count) {
while (event_index < event_count && ev.time == f) {
int channel = ev.buffer[0] & 0x0F;
MappingList::iterator it;