From: Jeff Davis Date: Tue, 4 Nov 2025 17:46:00 +0000 (-0800) Subject: Remove redundant memset() introduced by a0942f4. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bfaea11d2d686a06487c2e33297bf17f12732d7;p=thirdparty%2Fpostgresql.git Remove redundant memset() introduced by a0942f4. Reported-by: Chao Li Discussion: https://postgr.es/m/CAEoWx2kAkNaDa01O0nKsQmkfEmxsDvm09SU=f1T0CV8ew3qJEA@mail.gmail.com --- diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c index 1173a6d81b5..74a52d87067 100644 --- a/src/backend/access/common/heaptuple.c +++ b/src/backend/access/common/heaptuple.c @@ -1502,7 +1502,6 @@ heap_form_minimal_tuple(TupleDesc tupleDescriptor, * Allocate and zero the space needed. */ mem = palloc0(len + extra); - memset(mem, 0, extra); tuple = (MinimalTuple) (mem + extra); /*