[Freeswitch-svn] [commit] r13845 - freeswitch/trunk/src/mod/asr_tts/mod_unimrcp

FreeSWITCH SVN mrene at freeswitch.org
Thu Jun 18 11:26:50 PDT 2009


Author: mrene
Date: Thu Jun 18 13:26:50 2009
New Revision: 13845

Log:
Fix bad ptr in mrcp profile

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

Modified: freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	Thu Jun 18 13:26:50 2009
@@ -3171,7 +3171,7 @@
 			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");



More information about the Freeswitch-svn mailing list