Replace pointer comparisons and assignments to literal zero with NULL
authorPeter Eisentraut <[email protected]>
Tue, 2 Dec 2025 07:39:24 +0000 (08:39 +0100)
committerPeter Eisentraut <[email protected]>
Tue, 2 Dec 2025 07:39:24 +0000 (08:39 +0100)
commitec782f56b0c30ef493e8356b46e1131612f01d9f
treefaf0c5226db71ec50e79978135f493d853882b76
parent376c649634bb3fbfad79940f996e2fcb4c2ea6bf
Replace pointer comparisons and assignments to literal zero with NULL

While 0 is technically correct, NULL is the semantically appropriate
choice for pointers.

Author: Bertrand Drouvot <[email protected]>
Discussion: https://www.postgresql.org/message-id/aS1AYnZmuRZ8g%2B5G%40ip-10-97-1-34.eu-west-3.compute.internal
src/backend/nodes/copyfuncs.c
src/backend/postmaster/postmaster.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/timestamp.c
src/interfaces/ecpg/ecpglib/prepare.c