mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
[mod_unimrcp] scan-build: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'mod_profile')
This commit is contained in:
parent
8e0c0df5b6
commit
480aff54e4
@ -4232,7 +4232,12 @@ static mrcp_client_t *mod_unimrcp_client_create(switch_memory_pool_t *mod_pool)
|
||||
|
||||
/* prepare mod_unimrcp's profile for configuration */
|
||||
profile_create(&mod_profile, name, mod_pool);
|
||||
switch_core_hash_insert(globals.profiles, mod_profile->name, mod_profile);
|
||||
if (mod_profile) {
|
||||
switch_core_hash_insert(globals.profiles, mod_profile->name, mod_profile);
|
||||
} else {
|
||||
client = NULL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* pull in any default SPEAK params */
|
||||
default_params = switch_xml_child(profile, "synthparams");
|
||||
|
Loading…
x
Reference in New Issue
Block a user