rework so that rice parameters and raw_bits from the entropy coding method struct...
[platform/upstream/flac.git] / src / libFLAC / bitbuffer.c
index 62d12ea..c0e0078 100644 (file)
@@ -254,6 +254,7 @@ FLAC__BitBuffer *FLAC__bitbuffer_new()
        FLAC__BitBuffer *bb = (FLAC__BitBuffer*)malloc(sizeof(FLAC__BitBuffer));
 
        if(0 != bb) {
+               memset(bb, 0, sizeof(FLAC__BitBuffer));
                bb->buffer = 0;
                bb->capacity = 0;
                bb->blurbs = bb->bits = bb->total_bits = 0;