[PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'

From: didier <did447(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] gcc warning 'expression which evaluates to zero treated as a null pointer'
Date: 2019-11-13 10:29:26
Message-ID: CAJRYxu+XQuM0qnSqt1Ujztu6fBPzMMAT3VEn6W32rgKG6A2Fsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
Trivial patch:
- remove a gcc warning (since commit 7a0574b5)
expression which evaluates to zero treated as a null pointer constant of
type 'HeapTuple' (aka 'struct HeapTupleData *')

- always use "if (newtuple == NULL)" rather than mixing !newtuple and
newtuple == NULL

Regards
Didier

Attachment Content-Type Size
trigger.patch text/x-patch 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2019-11-13 10:36:58 Re: [HACKERS] Block level parallel vacuum
Previous Message Masahiko Sawada 2019-11-13 10:25:08 Re: [HACKERS] Block level parallel vacuum