mirror of
https://github.com/google/brotli.git
synced 2024-11-29 06:31:06 +00:00
Initialize pos and loop_counter.
This commit is contained in:
parent
9ceff0372c
commit
5cf07a68b2
@ -32,6 +32,9 @@ void BrotliStateInit(BrotliState* s) {
|
|||||||
s->substate_huffman = BROTLI_STATE_HUFFMAN_NONE;
|
s->substate_huffman = BROTLI_STATE_HUFFMAN_NONE;
|
||||||
s->substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE;
|
s->substate_decode_uint8 = BROTLI_STATE_DECODE_UINT8_NONE;
|
||||||
|
|
||||||
|
s->loop_counter = 0;
|
||||||
|
s->pos = 0;
|
||||||
|
|
||||||
s->block_type_trees = NULL;
|
s->block_type_trees = NULL;
|
||||||
s->block_len_trees = NULL;
|
s->block_len_trees = NULL;
|
||||||
s->ringbuffer = NULL;
|
s->ringbuffer = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user