mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
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.
This commit is contained in:
@ -3362,6 +3362,8 @@ get_number_of_groups(PlannerInfo *root,
|
|||||||
ListCell *lc;
|
ListCell *lc;
|
||||||
ListCell *lc2;
|
ListCell *lc2;
|
||||||
|
|
||||||
|
Assert(gd); /* keep Coverity happy */
|
||||||
|
|
||||||
dNumGroups = 0;
|
dNumGroups = 0;
|
||||||
|
|
||||||
foreach(lc, gd->rollups)
|
foreach(lc, gd->rollups)
|
||||||
|
Reference in New Issue
Block a user