Skip to content

Commit 9cb9233

Browse files
committed
Fix uninitialized variable from commit a4d75c8.
The path for *exprs != NIL would misbehave, and likely crash, since pull_varattnos expects its last argument to be valid at call. Found by Coverity --- we have no coverage of this path in the regression tests.
1 parent 81a23dd commit 9cb9233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ statext_is_compatible_clause(PlannerInfo *root, Node *clause, Index relid,
16091609

16101610
if (pg_class_aclcheck(rte->relid, userid, ACL_SELECT) != ACLCHECK_OK)
16111611
{
1612-
Bitmapset *clause_attnums;
1612+
Bitmapset *clause_attnums = NULL;
16131613

16141614
/* Don't have table privilege, must check individual columns */
16151615
if (*exprs != NIL)

0 commit comments

Comments
 (0)