fix discarding const

This commit is contained in:
derselbst 2018-06-17 15:59:05 +02:00
parent 9e2ea65618
commit a55e7e8d79

View file

@ -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))