Skip to content

Commit 01add89

Browse files
committed
Suppress uninitialized-variable warning.
Several buildfarm critters that don't usually produce such warnings are complaining about e717a9a. I think it's actually safe, but move initialization to silence the warning.
1 parent 0f61727 commit 01add89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/pg_proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,7 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
916916
* least catch silly syntactic errors.
917917
*/
918918
raw_parsetree_list = pg_parse_query(prosrc);
919+
querytree_list = NIL;
919920

920921
if (!haspolyarg)
921922
{
@@ -928,7 +929,6 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
928929
/* But first, set up parameter information */
929930
pinfo = prepare_sql_fn_parse_info(tuple, NULL, InvalidOid);
930931

931-
querytree_list = NIL;
932932
foreach(lc, raw_parsetree_list)
933933
{
934934
RawStmt *parsetree = lfirst_node(RawStmt, lc);

0 commit comments

Comments
 (0)