Skip to content

Commit adb5c32

Browse files
committed
Suppress uninitialized-variable warning from a61b1f7.
Some compilers complain about sub_rteperminfos not being initialized, evidently because they don't detect that it is only used and set if isGeneralSelect is true. Make it follow the long-established pattern for its sibling variable sub_rtable. Per reports from Pavel Stehule and the buildfarm. Discussion: https://postgr.es/m/CAFj8pRDOvGOi-n616kM0Cc7qSbg_nGoS=-haB+D785sUXADqSg@mail.gmail.com
1 parent 197f98a commit adb5c32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/parser/analyze.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
615615
else
616616
{
617617
sub_rtable = NIL; /* not used, but keep compiler quiet */
618+
sub_rteperminfos = NIL;
618619
sub_namespace = NIL;
619620
}
620621

0 commit comments

Comments
 (0)