Fix bad ptr in mrcp profile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13845 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c3fb7f0c2f
commit
1d4944f663
|
@ -3171,7 +3171,7 @@ static mrcp_client_t *mod_unimrcp_client_create()
|
|||
mpf_rtp_config_t *rtp_config = NULL;
|
||||
|
||||
/* get profile attributes */
|
||||
const char *name = switch_xml_attr(profile, "name");
|
||||
const char *name = apr_pstrdup(pool, switch_xml_attr(profile, "name"));
|
||||
const char *version = switch_xml_attr(profile, "version");
|
||||
if (switch_strlen_zero(name) || switch_strlen_zero(version)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "<profile> missing name or version attribute\n");
|
||||
|
|
Loading…
Reference in New Issue