projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aa112b
)
gcc 4.4: Remove a nop memset size 0 that annoys gcc
author
Tzafrir Cohen
<tzafrir.cohen@xorcom.com>
Sun, 13 Sep 2009 17:34:11 +0000
(17:34 +0000)
committer
Tzafrir Cohen
<tzafrir.cohen@xorcom.com>
Sun, 13 Sep 2009 17:34:11 +0000
(17:34 +0000)
This memset doesn't write beyond the end of the buffer.
(tmpbuf has size of 4).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218184
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_phone.c
patch
|
blob
|
history
diff --git
a/channels/chan_phone.c
b/channels/chan_phone.c
index
6e00291
..
736fb27
100644
(file)
--- 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.ptr, 4);
expected = 24;
res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);