initialize all elements in initOutputBuffer()

The current OutputBuffer object is allocated statically, i.e. it is
zeroed.  To be safe for other cases in the future, also initialize the
other elements.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7337 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-04-12 04:21:04 +00:00 committed by Eric Wong
parent 7dc1f3117c
commit 5cfb1cf46e

View File

@ -28,6 +28,8 @@ void initOutputBuffer(OutputBuffer * cb, unsigned int size)
memset(&cb->convState, 0, sizeof(ConvState));
cb->chunks = xmalloc(size * sizeof(*cb->chunks));
cb->size = size;
cb->begin = 0;
cb->end = 0;
cb->currentChunk = -1;
}