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().

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b853e644d78d99ef1779c9bf7bc3944694460aa2

Modified Files
--------------
src/bin/pg_upgrade/multixact_read_v18.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reply via email to