Commit 096a30b5 authored by Tom Lane's avatar Tom Lane

Fix some more 'variable may be used uninitialized' warnings from gcc 4.4.

parent af2cf3be
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.212 2009/03/26 22:26:06 petere Exp $ * $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.213 2009/04/24 16:09:50 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -827,6 +827,15 @@ func_get_detail(List *funcname, ...@@ -827,6 +827,15 @@ func_get_detail(List *funcname,
FuncCandidateList raw_candidates; FuncCandidateList raw_candidates;
FuncCandidateList best_candidate; FuncCandidateList best_candidate;
/* initialize output arguments to silence compiler warnings */
*funcid = InvalidOid;
*rettype = InvalidOid;
*retset = false;
*nvargs = 0;
*true_typeids = NULL;
if (argdefaults)
*argdefaults = NIL;
/* Get list of possible candidates from namespace search */ /* Get list of possible candidates from namespace search */
raw_candidates = FuncnameGetCandidates(funcname, nargs, raw_candidates = FuncnameGetCandidates(funcname, nargs,
expand_variadic, expand_defaults); expand_variadic, expand_defaults);
......
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