[asterisk-commits] tzafrir: trunk r218184 - /trunk/channels/chan_phone.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Sep 13 12:34:15 CDT 2009


Author: tzafrir
Date: Sun Sep 13 12:34:11 2009
New Revision: 218184

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218184
Log:
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).

Modified:
    trunk/channels/chan_phone.c

Modified: trunk/channels/chan_phone.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_phone.c?view=diff&rev=218184&r1=218183&r2=218184
==============================================================================
--- trunk/channels/chan_phone.c (original)
+++ trunk/channels/chan_phone.c Sun Sep 13 12:34:11 2009
@@ -807,7 +807,6 @@
 		   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);




More information about the asterisk-commits mailing list