aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compress/flate/huffman_code.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compress/flate/huffman_code.go b/src/compress/flate/huffman_code.go
index 07b7827e1a..9b64d15e75 100644
--- a/src/compress/flate/huffman_code.go
+++ b/src/compress/flate/huffman_code.go
@@ -288,11 +288,9 @@ func (h *huffmanEncoder) generate(freq []int32, maxBits int32) {
list[count] = literalNode{uint16(i), f}
count++
} else {
- list[count] = literalNode{}
h.codes[i].len = 0
}
}
- list[len(freq)] = literalNode{}
list = list[:count]
if count <= 2 {