Commit 377790fb authored by Heikki Linnakangas's avatar Heikki Linnakangas

Pass sensible value to memset() when randomizing reorderbuffer's tuple slab.

This is entirely harmless, but still wrong. Noticed by coverity.

Andres Freund
parent 329de9fa
......@@ -456,7 +456,7 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb)
tuple = slist_container(ReorderBufferTupleBuf, node,
slist_pop_head_node(&rb->cached_tuplebufs));
#ifdef USE_ASSERT_CHECKING
memset(tuple, 0xdeadbeef, sizeof(ReorderBufferTupleBuf));
memset(tuple, 0xa9, sizeof(ReorderBufferTupleBuf));
#endif
}
else
......
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