pgsql: Try and silence spurious Coverity warning.

From: Andrew Gierth <rhodiumtoad(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Try and silence spurious Coverity warning.
Date: 2017-04-03 22:35:17
Message-ID: E1cvAZB-00056u-3f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Try and silence spurious Coverity warning.

gset_data (aka gd) in planner.c is always non-null if and only if
parse->groupingSets is non-null, but Coverity doesn't know that and
complains. Feed it an assertion to see if that keeps it happy.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f5780935266bd72951c770396f9267366414d1b9

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-04-04 02:28:31 pgsql: Properly acquire buffer lock for page-at-a-time hash vacuum.
Previous Message Peter Eisentraut 2017-04-03 20:20:34 pgsql: Make header self-contained