Although there's no compiler warning, and probably no correctness issue, Ithink the intended coding was as I propose in the diff attached.
-- Antonin HouskaWeb: https://www.cybertec-postgresql.com