Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2
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)