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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix comparisons of pointers with zero to compare with NULL inste
Дата
Msg-id E1PBuzr-0004vb-B2@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Oops, missed one fix for EquivalenceClass rearrangement.
Следующее
От: hinoue@pgfoundry.org (User Hinoue)
Дата:
Сообщение: psqlodbc - psqlodbc: Correct the handling of parameters in the installer