pgsql: Fix comparisons of pointers with zero to compare with NULL inste - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix comparisons of pointers with zero to compare with NULL inste
Date
Msg-id E1PBuzr-0004vb-B2@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix comparisons of pointers with zero to compare with NULL instead.

Per C standard, these are semantically the same thing; but saying NULL
when you mean NULL is good for readability.

Marti Raudsepp, per results of INRIA's Coccinelle.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=bfd3f37be309c3647844aed937e6a66aad5fd3cb

Modified Files
--------------
src/backend/regex/regc_lex.c    |    2 +-
src/backend/utils/adt/tsrank.c  |    2 +-
src/backend/utils/fmgr/dfmgr.c  |    2 +-
src/bin/pg_dump/pg_backup_tar.c |    2 +-
src/port/dirmod.c               |    2 +-
src/timezone/zic.c              |   12 ++++++------
6 files changed, 11 insertions(+), 11 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Oops, missed one fix for EquivalenceClass rearrangement.
Next
From: hinoue@pgfoundry.org (User Hinoue)
Date:
Subject: psqlodbc - psqlodbc: Correct the handling of parameters in the installer