pgsql: Replace pointer comparisons and assignments to literal zero with

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace pointer comparisons and assignments to literal zero with
Date: 2025-12-02 07:44:16
Message-ID: E1vQL3Y-002Obj-0k@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(dot)pg(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-12-02 08:25:46 pgsql: Simplify hash_xlog_split_allocate_page()
Previous Message Peter Eisentraut 2025-12-02 07:26:18 pgsql: Update comment related to C99