aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/outputBuffer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 3620f826b..8e4c2d93e 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -31,11 +31,7 @@ static mpd_sint8 currentMetaChunk = -1;
static mpd_sint8 sendMetaChunk = 0;
void clearAllMetaChunkSets(OutputBuffer * cb) {
- int i;
-
- for(i=0; i<BUFFERED_METACHUNKS; i++) {
- cb->metaChunkSet[i] = 0;
- }
+ memset(cb->metaChunkSet, 0, BUFFERED_METACHUNKS);
}
void clearOutputBuffer(OutputBuffer * cb) {