pgsql: Fix comparisons of pointers with zero to compare with NULL inste

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix comparisons of pointers with zero to compare with NULL inste
Date: 2010-10-29 19:52:19
Message-ID: E1PBuzr-0004vb-B2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Hinoue 2010-10-30 02:13:57 psqlodbc - psqlodbc: Correct the handling of parameters in the installer
Previous Message Tom Lane 2010-10-29 18:45:25 pgsql: Oops, missed one fix for EquivalenceClass rearrangement.