]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Mar 2008 15:56:24 +0000 (15:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Mar 2008 15:56:24 +0000 (15:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7928 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index 65a2445ea9bb8118927b82b0e8b4f392c4464fdb..63db34cb0909b077f3c011281296e6c58d944362 100644 (file)
@@ -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 {