Avoid unnecessary MemSet call

Peter Eisentraut <peter@eisentraut.org>

Commit: 8cd61d288adfabe1b7f83359eb0abd27382eec08
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-06-30T18:10:13Z
Releases: 16.0
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.vf@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com

Files

PathChange+/−
src/backend/utils/cache/relcache.c modified +1 −1

Discussion