pgsql: aio: Avoid spurious coverity warning

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

pgsql: aio: Avoid spurious coverity warning

От:
Andres Freund <andres@anarazel.de>
Дата:
aio: Avoid spurious coverity warning

PgAioResult.result is never accessed in the relevant path, but coverity
complains about an uninitialized access anyway. So just zero-initialize the
whole thing.  While at it, reduce the scope of the variable.

Reported-by: Ranier Vilela 
Reviewed-by: Noah Misch 
Discussion: https://postgr.es/m/CAEudQApsKqd-s+fsUQ0OmxJAMHmBSXxrAz3dCs+uvqb3iRtjSw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57dec20fd4691900fbe118699d32640fc538dc20

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

FAQ