pgsql: Replace pointer comparisons and assignments to literal zero with - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Replace pointer comparisons and assignments to literal zero with
Date
Msg-id E1vQL3Y-002Obj-0k@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/aS1AYnZmuRZ8g%2B5G%40ip-10-97-1-34.eu-west-3.compute.internal

Branch
------
master

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

Modified Files
--------------
src/backend/nodes/copyfuncs.c         | 2 +-
src/backend/postmaster/postmaster.c   | 2 +-
src/backend/utils/adt/pg_locale.c     | 4 ++--
src/backend/utils/adt/timestamp.c     | 2 +-
src/interfaces/ecpg/ecpglib/prepare.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Update comment related to C99
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Simplify hash_xlog_split_allocate_page()