mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Removing a pointless memset. The memory was just calloc'd, so the
memory is already zeroed out git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -748,7 +748,6 @@ static void *moh_alloc(struct ast_channel *chan, void *params) | ||||
| 	/* 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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user