aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:21:04 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:21:04 +0000
commit5cfb1cf46e9bbc87a6a8ebfea294be6cebf0f4a5 (patch)
tree5ecc8336a95fb4cd075f31df925cdfa6fd9129c4 /src/outputBuffer.c
parent7dc1f3117c966f0403fb19eaceb9f3bed65ead5f (diff)
downloadmpd-5cfb1cf46e9bbc87a6a8ebfea294be6cebf0f4a5.tar.gz
mpd-5cfb1cf46e9bbc87a6a8ebfea294be6cebf0f4a5.tar.xz
mpd-5cfb1cf46e9bbc87a6a8ebfea294be6cebf0f4a5.zip
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
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index a2cfed48e..37b0e2f20 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -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;
}