From: Tom Lane Date: Thu, 8 Apr 2021 19:14:26 +0000 (-0400) Subject: Suppress uninitialized-variable warning. X-Git-Tag: REL_14_BETA1~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01add89454d5dc289ed3126d5de03169bdeff41b;p=thirdparty%2Fpostgresql.git Suppress uninitialized-variable warning. Several buildfarm critters that don't usually produce such warnings are complaining about e717a9a18. I think it's actually safe, but move initialization to silence the warning. --- diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c index 05de377ba9c..cd13e63852a 100644 --- a/src/backend/catalog/pg_proc.c +++ b/src/backend/catalog/pg_proc.c @@ -916,6 +916,7 @@ fmgr_sql_validator(PG_FUNCTION_ARGS) * least catch silly syntactic errors. */ raw_parsetree_list = pg_parse_query(prosrc); + querytree_list = NIL; if (!haspolyarg) { @@ -928,7 +929,6 @@ fmgr_sql_validator(PG_FUNCTION_ARGS) /* But first, set up parameter information */ pinfo = prepare_sql_fn_parse_info(tuple, NULL, InvalidOid); - querytree_list = NIL; foreach(lc, raw_parsetree_list) { RawStmt *parsetree = lfirst_node(RawStmt, lc);