]> granicus.if.org Git - postgresql/commit
Fix comparisons of pointers with zero to compare with NULL instead.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Oct 2010 19:51:52 +0000 (15:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Oct 2010 19:51:52 +0000 (15:51 -0400)
commitbfd3f37be309c3647844aed937e6a66aad5fd3cb
tree5bc39a02df05c848eb88e300a25ef83af4cd43b6
parent48a1fb23900d73e7d9cb2dc0408c745cd03597a7
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.
src/backend/regex/regc_lex.c
src/backend/utils/adt/tsrank.c
src/backend/utils/fmgr/dfmgr.c
src/bin/pg_dump/pg_backup_tar.c
src/port/dirmod.c
src/timezone/zic.c