summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-12-11 21:46:16 +0000
committerMark Michelson <mmichelson@digium.com>2007-12-11 21:46:16 +0000
commit27cebd1d5ca6ad8d742c7985cf1f264766e9046b (patch)
treea804bfa2361467edfade69a16a969cb8ea231121 /res/res_musiconhold.c
parent21df42b35c99f9565cfa67eb9820072974c321c3 (diff)
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
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 985dc80b3..b4c5edfbb 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;