mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 01:17:30 -05:00
prevent appending nil buffer
This commit is contained in:
parent
bb46a96f04
commit
fa6ff77cee
@ -57,7 +57,9 @@ func NewMultiBufferValue(b ...*Buffer) MultiBuffer {
|
||||
|
||||
// Append appends buffer to the end of this MultiBuffer
|
||||
func (mb *MultiBuffer) Append(buf *Buffer) {
|
||||
*mb = append(*mb, buf)
|
||||
if buf != nil {
|
||||
*mb = append(*mb, buf)
|
||||
}
|
||||
}
|
||||
|
||||
// AppendMulti appends a MultiBuffer to the end of this one.
|
||||
|
Loading…
Reference in New Issue
Block a user