diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 985dc80b30..b4c5edfbbf 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -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;