Commit 01add894 authored by Tom Lane's avatar Tom Lane

Suppress uninitialized-variable warning.

Several buildfarm critters that don't usually produce such
warnings are complaining about e717a9a1.  I think it's
actually safe, but move initialization to silence the warning.
parent 0f61727b
...@@ -916,6 +916,7 @@ fmgr_sql_validator(PG_FUNCTION_ARGS) ...@@ -916,6 +916,7 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
* least catch silly syntactic errors. * least catch silly syntactic errors.
*/ */
raw_parsetree_list = pg_parse_query(prosrc); raw_parsetree_list = pg_parse_query(prosrc);
querytree_list = NIL;
if (!haspolyarg) if (!haspolyarg)
{ {
...@@ -928,7 +929,6 @@ fmgr_sql_validator(PG_FUNCTION_ARGS) ...@@ -928,7 +929,6 @@ fmgr_sql_validator(PG_FUNCTION_ARGS)
/* But first, set up parameter information */ /* But first, set up parameter information */
pinfo = prepare_sql_fn_parse_info(tuple, NULL, InvalidOid); pinfo = prepare_sql_fn_parse_info(tuple, NULL, InvalidOid);
querytree_list = NIL;
foreach(lc, raw_parsetree_list) foreach(lc, raw_parsetree_list)
{ {
RawStmt *parsetree = lfirst_node(RawStmt, lc); RawStmt *parsetree = lfirst_node(RawStmt, lc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment