diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-11 21:46:16 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-11 21:46:16 +0000 |
commit | 7ee12372f0205e2fb12bb4516e51eeca2c20f931 (patch) | |
tree | a804bfa2361467edfade69a16a969cb8ea231121 /res | |
parent | bc610bd4711db0349fa7a455a24e78297b0a152c (diff) |
Removing a pointless memset. The memory was just calloc'd, so the
memory is already zeroed out
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92402 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_musiconhold.c | 1 |
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; |