avoid uninitialized fluid_cmd_handler struct

This commit is contained in:
Tom M 2018-02-22 20:54:50 +01:00 committed by GitHub
parent e4140e8a77
commit 6c1587f776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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