pgsql: Avoid unnecessary MemSet call

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid unnecessary MemSet call
Date: 2022-06-30 18:14:11
Message-ID: E1o6yg6-000YXH-5B@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid unnecessary MemSet call

The variable in question was changed from a struct to a pointer some
time ago (77947c51c08). Using MemSet to zero it still works but is
obviously unidiomatic and confusing, so change it to a straight
assignment.

Author: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w(at)mail(dot)gmail(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8cd61d288adfabe1b7f83359eb0abd27382eec08

Modified Files
--------------
src/backend/utils/cache/relcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-06-30 22:34:18 pgsql: Change some unnecessary MemSet calls
Previous Message Tom Lane 2022-06-30 15:26:48 pgsql: Stamp HEAD as 16devel.