From: Anthony Minessale Date: Wed, 19 Mar 2008 15:56:24 +0000 (+0000) Subject: update X-Git-Tag: v1.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=391afc48e59368331d5c198ed18a55f679a6d3de;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7928 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 65a2445ea9..63db34cb09 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -702,16 +702,18 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess 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 {