Replace loop with memset

This commit is contained in:
Marcus Weseloh 2017-12-04 18:53:47 +01:00
parent d77974c135
commit ae48793c28
1 changed files with 2 additions and 4 deletions

View File

@ -5339,10 +5339,8 @@ static int fluid_synth_set_important_channels(fluid_synth_t *synth, const char *
scores->num_important_channels = synth->midi_channels;
}
for (i = 0; i < scores->num_important_channels; i++)
{
scores->important_channels[i] = FALSE;
}
FLUID_MEMSET(scores->important_channels, FALSE,
sizeof(*scores->important_channels) * scores->num_important_channels);
if (channels != NULL)
{