mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
fix discarding const
This commit is contained in:
parent
9e2ea65618
commit
a55e7e8d79
1 changed files with 1 additions and 1 deletions
|
@ -3550,7 +3550,7 @@ fluid_cmd_handler_t* new_fluid_cmd_handler(fluid_synth_t* synth, fluid_midi_rout
|
|||
|
||||
for (i = 0; i < FLUID_N_ELEMENTS(fluid_commands); i++)
|
||||
{
|
||||
fluid_cmd_t* cmd = &fluid_commands[i];
|
||||
const fluid_cmd_t* cmd = &fluid_commands[i];
|
||||
int is_router_cmd = FLUID_STRCMP(cmd->topic, "router") == 0;
|
||||
|
||||
if((is_router_cmd && router == NULL) || (!is_router_cmd && synth == NULL))
|
||||
|
|
Loading…
Reference in a new issue