mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 19:31:40 +00:00
avoid uninitialized fluid_cmd_handler struct
This commit is contained in:
parent
e4140e8a77
commit
6c1587f776
1 changed files with 2 additions and 0 deletions
|
@ -2253,6 +2253,8 @@ fluid_cmd_handler_t* new_fluid_cmd_handler(fluid_synth_t* synth, fluid_midi_rout
|
|||
if (handler == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
FLUID_MEMSET(handler, 0, sizeof(*handler));
|
||||
|
||||
handler->commands = new_fluid_hashtable_full (fluid_str_hash, fluid_str_equal,
|
||||
NULL, fluid_cmd_handler_destroy_hash_value);
|
||||
if (handler->commands == NULL) {
|
||||
|
|
Loading…
Reference in a new issue