mirror of https://github.com/goccy/go-json.git
Fix init buffer
This commit is contained in:
parent
7d7af9fb36
commit
a973797e61
|
@ -31,7 +31,7 @@ func NewStream(r io.Reader) *Stream {
|
|||
return &Stream{
|
||||
r: r,
|
||||
bufSize: initBufSize,
|
||||
buf: []byte{nul},
|
||||
buf: make([]byte, initBufSize),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue