Preserve w.commands across Reset.

This commit is contained in:
Andy Balholm 2020-05-05 17:36:16 -07:00
parent cb9be97eb7
commit 2c14228f02
1 changed files with 0 additions and 3 deletions

View File

@ -1101,9 +1101,6 @@ func encoderInitState(s *Writer) {
ringBufferInit(&s.ringbuffer_)
s.commands_ = nil
s.cmd_alloc_size_ = 0
/* Initialize distance cache. */
s.dist_cache_[0] = 4