Remove redundant memset() introduced by a0942f4.

Reported-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAEoWx2kAkNaDa01O0nKsQmkfEmxsDvm09SU=f1T0CV8ew3qJEA@mail.gmail.com
pull/246/head
Jeff Davis 1 month ago
parent ff4597acd4
commit 4bfaea11d2
  1. 1
      src/backend/access/common/heaptuple.c

@ -1502,7 +1502,6 @@ heap_form_minimal_tuple(TupleDesc tupleDescriptor,
* Allocate and zero the space needed. * Allocate and zero the space needed.
*/ */
mem = palloc0(len + extra); mem = palloc0(len + extra);
memset(mem, 0, extra);
tuple = (MinimalTuple) (mem + extra); tuple = (MinimalTuple) (mem + extra);
/* /*

Loading…
Cancel
Save