Fix potential for compiler warning in GlobalVisTestFor().
authorAndres Freund
Mon, 13 Sep 2021 23:50:10 +0000 (16:50 -0700)
committerAndres Freund
Mon, 13 Sep 2021 23:50:10 +0000 (16:50 -0700)
commit0d0bbee5e3ee2eabe3a1f6081cbc4226520764c0
treefe9022c12d3556db14ddbdb2ac105fd1fd87852d
parent896a0c44f93b0b449fdf7e6c3973deab5fdfed4f
Fix potential for compiler warning in GlobalVisTestFor().

In d9d8aa9bb9a I added a defensive NULL assignment to protect against a
not-too-smart compiler warning about unitialized variable use after the
switch. Unfortunately I only did so on master and forgot to adjust that for
14.

Stephen noticed that there actually is a compiler warning :(.

Reported-By: Stephen Frost
Discussion: https://postgr.es/m/20210827224639[email protected]
src/backend/storage/ipc/procarray.c