From 2c14228f02a956d6b65fa1a5420e75f5b2b6d04e Mon Sep 17 00:00:00 2001 From: Andy Balholm Date: Tue, 5 May 2020 17:36:16 -0700 Subject: [PATCH] Preserve w.commands across Reset. --- encode.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/encode.go b/encode.go index c299606..2b468d4 100644 --- a/encode.go +++ b/encode.go @@ -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