Fix comparisons of pointers with zero to compare with NULL instead.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/regex/regc_lex.c | modified | +1 −1 |
| src/backend/utils/adt/tsrank.c | modified | +1 −1 |
| src/backend/utils/fmgr/dfmgr.c | modified | +1 −1 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +1 −1 |
| src/port/dirmod.c | modified | +1 −1 |
| src/timezone/zic.c | modified | +6 −6 |