[asterisk-commits] mmichelson: trunk r92402 - /trunk/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 11 15:46:17 CST 2007


Author: mmichelson
Date: Tue Dec 11 15:46:16 2007
New Revision: 92402

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92402
Log:
Removing a pointless memset. The memory was just calloc'd, so the 
memory is already zeroed out


Modified:
    trunk/res/res_musiconhold.c

Modified: trunk/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_musiconhold.c?view=diff&rev=92402&r1=92401&r2=92402
==============================================================================
--- trunk/res/res_musiconhold.c (original)
+++ trunk/res/res_musiconhold.c Tue Dec 11 15:46:16 2007
@@ -748,7 +748,6 @@
 	/* Initiating music_state for current channel. Channel should know name of moh class */
 	if (!chan->music_state && (state = ast_calloc(1, sizeof(*state)))) {
 		chan->music_state = state;
-		memset(state, 0, sizeof(*state));
 		state->class = class;
 	} else
 		state = chan->music_state;




More information about the asterisk-commits mailing list