]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Removing a pointless memset. The memory was just calloc'd, so the
authorMark Michelson <mmichelson@digium.com>
Tue, 11 Dec 2007 21:46:16 +0000 (21:46 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 11 Dec 2007 21:46:16 +0000 (21:46 +0000)
memory is already zeroed out

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92402 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index 985dc80b30f8b778b1810c7036f6d7030b0fef33..b4c5edfbbfe40d574bba0fe41ff9946ec308da13 100644 (file)
@@ -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;