mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
zero allocated class memory
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user