[Freeswitch-svn] [commit] r7928 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Mar 19 11:56:24 EDT 2008


Author: anthm
Date: Wed Mar 19 11:56:24 2008
New Revision: 7928

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
update

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Wed Mar 19 11:56:24 2008
@@ -702,16 +702,18 @@
 		char *dup;
 
 		if (!strncasecmp(file, "phrase:", 7)) {
-			char *arg;
+			char *arg = NULL;
 			char *lang = NULL;
 			alt = file + 7;
 			dup = switch_core_session_strdup(session, alt);
-			if ((arg = strchr(dup, ':'))) {
-				*arg++ = '\0';
-				if ((lang = strchr(arg, ':'))) {
-					*lang++ = '\0';
+
+			if ((lang = strchr(dup, ':'))) {
+				*lang++ = '\0';
+				if ((arg = strchr(lang, ':'))) {
+					*arg++ = '\0';
 				}
 			}
+			
 			if (dup) {
 				return switch_ivr_phrase_macro(session, dup, arg, lang, args);
 			} else {



More information about the Freeswitch-svn mailing list