git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af2cf3b)
Fix some more 'variable may be used uninitialized' warnings from gcc 4.4.
2009年4月24日 16:09:50 +0000 (16:09 +0000)
2009年4月24日 16:09:50 +0000 (16:09 +0000)

diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c
index edee35edceea44bf10fdb8cd6e4a74dc6688c16f..91a6f12d662b56bd131b59a4dd769f2965a14969 100644 (file)
--- a/src/backend/parser/parse_func.c
+++ b/src/backend/parser/parse_func.c
@@ -8,7 +8,7 @@
*
*
* 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,
FuncCandidateList raw_candidates;
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 */
raw_candidates = FuncnameGetCandidates(funcname, nargs,
expand_variadic, expand_defaults);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /