Commit bd496ea0 authored by Aaron Jacobs's avatar Aaron Jacobs

buffer: don't use memclr for the tiny header, whose size is known.

parent 05b45914
......@@ -56,7 +56,7 @@ func init() {
// are solely a zeroed fusekernel.OutHeader struct.
func (m *OutMessage) Reset() {
m.payloadOffset = 0
memclr(unsafe.Pointer(&m.header), uintptr(OutMessageHeaderSize))
m.header = fusekernel.OutHeader{}
}
// OutHeader returns a pointer to the header at the start of the message.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment