diff options
author | tzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-13 19:10:56 +0000 |
---|---|---|
committer | tzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-13 19:10:56 +0000 |
commit | 2fa1473fe750557232fa564611d501cb0d3bb1d4 (patch) | |
tree | 8795b920932c8a4c83477d9819460044545f4835 /channels | |
parent | d3a0d9f1a3694202f8d703c53383cf215d1284be (diff) |
gcc 4.4: Remove a nop memset size 0 that annoys gcc
This memset doesn't write beyond the end of the buffer.
(tmpbuf has size of 4).
Merged revisions 218184 via svnmerge from
http://svn.digium.com/svn/asterisk/trunk
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@218216 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_phone.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 7a767fa03..3af1a17d2 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -807,7 +807,6 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame) we have to pad it to 24 bytes still. */ if (frame->datalen == 4) { if (p->silencesupression) { - (void) memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4); memcpy(tmpbuf, frame->data, 4); expected = 24; res = phone_write_buf(p, tmpbuf, expected, maxfr, 0); |