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 <ranier...@gmail.com>
Reviewed-by: Noah Misch <n...@leadboat.com>
Discussion: 
https://postgr.es/m/caeudqapskqd-s+fsuq0omxjamhmbsxxraz3dcs+uvqb3irt...@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(-)

Reply via email to