Skip to content

Commit

Permalink
add explicit initialization of fields of structures in internal/xstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kozyrev-m committed Apr 16, 2024
1 parent f0406f6 commit a1b0e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/xstring/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type buffer struct {
}

var buffersPool = sync.Pool{New: func() interface{} {
return &buffer{}
return &buffer{Buffer: bytes.Buffer{}}
}}

func (b *buffer) Free() {
Expand Down

0 comments on commit a1b0e00

Please sign in to comment.