From a973797e61555d97dda142b5fc6b87a50a75664b Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 4 Jun 2021 12:41:18 +0900 Subject: [PATCH] Fix init buffer --- internal/decoder/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/decoder/stream.go b/internal/decoder/stream.go index a08bfee..ca68440 100644 --- a/internal/decoder/stream.go +++ b/internal/decoder/stream.go @@ -31,7 +31,7 @@ func NewStream(r io.Reader) *Stream { return &Stream{ r: r, bufSize: initBufSize, - buf: []byte{nul}, + buf: make([]byte, initBufSize), } }