Content-Length: 256894 | pFad | http://github.com/postgrespro/postgres/commit/f5780935266bd72951c770396f9267366414d1b9

F7 Try and silence spurious Coverity warning. · postgrespro/postgres@f578093 · GitHub
Skip to content

Commit f578093

Browse files
committed
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.
1 parent 9fa6e08 commit f578093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,6 +3362,8 @@ get_number_of_groups(PlannerInfo *root,
33623362
ListCell *lc;
33633363
ListCell *lc2;
33643364

3365+
Assert(gd); /* keep Coverity happy */
3366+
33653367
dNumGroups = 0;
33663368

33673369
foreach(lc, gd->rollups)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f5780935266bd72951c770396f9267366414d1b9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy