Change some unnecessary MemSet calls
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 30 Jun 2022 22:16:38 +0000 (00:16 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 30 Jun 2022 22:16:38 +0000 (00:16 +0200)
commit258f48f858b0bcc4c3fac3fa01f79ee61ad0cd1e
tree4e0cdca7b5fce474ac0bcb8c05c37b3283511a20
parent8cd61d288adfabe1b7f83359eb0abd27382eec08
Change some unnecessary MemSet calls

MemSet() with a value other than 0 just falls back to memset(), so the
indirection is unnecessary if the value is constant and not 0.  Since
there is some interest in getting rid of MemSet(), this gets some easy
cases out of the way.  (There are a few MemSet() calls that I didn't
change to maintain the consistency with their surrounding code.)

Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com
contrib/hstore/hstore_gist.c
contrib/intarray/_intbig_gist.c
contrib/ltree/_ltree_gist.c
contrib/oid2name/oid2name.c
contrib/pg_trgm/trgm_gist.c
src/backend/access/hash/hashovfl.c
src/backend/replication/walreceiver.c
src/backend/utils/adt/tsgistidx.c