Fix double assignment.
Tom Lane <tgl@sss.pgh.pa.us>
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().
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_upgrade/multixact_read_v18.c | modified | +1 −1 |