]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
code before declaration.
authorMichael Jerris <mike@jerris.com>
Sat, 23 Sep 2006 23:21:48 +0000 (23:21 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 23 Sep 2006 23:21:48 +0000 (23:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2813 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 75cacbd7b889e3aca9a8b7fc5852bd746f5c0085..0321cac0328ab8c8e0eb38502f1c69b477faf0c9 100644 (file)
@@ -618,8 +618,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
                        ext++;
                } else {
                        char *new_file;
+                       uint32_t len;
                        ext = read_codec->implementation->iananame;
-                       uint32_t len = (uint32_t)strlen(file) + (uint32_t)strlen(ext) + 2;
+                       len = (uint32_t)strlen(file) + (uint32_t)strlen(ext) + 2;
                        new_file = switch_core_session_alloc(session, len);
                        snprintf(new_file, len, "%s.%s", file, ext);
                        file = new_file;