Fix double assignment.
authorTom Lane <[email protected]>
Sun, 14 Dec 2025 17:09:56 +0000 (12:09 -0500)
committerTom Lane <[email protected]>
Sun, 14 Dec 2025 17:09:56 +0000 (12:09 -0500)
commitb853e644d78d99ef1779c9bf7bc3944694460aa2
tree34abfbbbdbec586d224286b77af3f07f1b2c80a1
parent8c498479d70f963533d57d8bb1b3a58e00fe0d03
Fix double assignment.

Coverity complained about this, not without reason:

OldMultiXactReader *state = state = pg_malloc(sizeof(*state));

(I'm surprised this is even legal C ... why is "state" in-scope
in its initialization expression?)

While at it, convert to use our newly-preferred "pg_malloc_object"
macro instead of an explicit sizeof().
src/bin/pg_upgrade/multixact_read_v18.c