From 7b3284b3f5635a41f5d7fdf5df6eea27d8095360 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 23 Sep 2006 23:21:48 +0000 Subject: [PATCH] code before declaration. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2813 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 75cacbd7b8..0321cac032 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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;