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