Commit 5cfb1cf4 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent 7dc1f311
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment