code before declaration.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2813 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2967ad8acd
commit
7b3284b3f5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue