Merged revisions 83879 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83879 | tilghman | 2007-09-26 13:35:56 -0500 (Wed, 26 Sep 2007) | 2 lines

Remove unused 4k of memory on the program stack (closes issue #10827)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher 2007-09-26 18:43:23 +00:00
parent f04b586267
commit afebefc763
1 changed files with 0 additions and 5 deletions

View File

@ -5204,7 +5204,6 @@ static int zt_write(struct ast_channel *ast, struct ast_frame *frame)
{
struct zt_pvt *p = ast->tech_pvt;
int res;
unsigned char outbuf[4096];
int index;
index = zt_get_index(ast, p, 0);
if (index < 0) {
@ -5255,10 +5254,6 @@ static int zt_write(struct ast_channel *ast, struct ast_frame *frame)
/* Return if it's not valid data */
if (!frame->data || !frame->datalen)
return 0;
if (frame->datalen > sizeof(outbuf) * 2) {
ast_log(LOG_WARNING, "Frame too large\n");
return 0;
}
if (frame->subclass == AST_FORMAT_SLINEAR) {
if (!p->subs[index].linear) {