pgsql: Avoid unnecessary MemSet call

Поиск
Список
Период
Сортировка
Искать

pgsql: Avoid unnecessary MemSet call

От:
Peter Eisentraut <peter@eisentraut.org>
Дата:
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 
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.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(-)

FAQ