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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy