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), } }