From 391afc48e59368331d5c198ed18a55f679a6d3de Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 19 Mar 2008 15:56:24 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7928 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_play_say.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 {