Skip to content

Commit 096a30b

Browse files
committed
Fix some more 'variable may be used uninitialized' warnings from gcc 4.4.
1 parent af2cf3b commit 096a30b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/backend/parser/parse_func.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.212 2009/03/26 22:26:06 petere Exp $
11+
* $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.213 2009/04/24 16:09:50 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -827,6 +827,15 @@ func_get_detail(List *funcname,
827827
FuncCandidateList raw_candidates;
828828
FuncCandidateList best_candidate;
829829

830+
/* initialize output arguments to silence compiler warnings */
831+
*funcid = InvalidOid;
832+
*rettype = InvalidOid;
833+
*retset = false;
834+
*nvargs = 0;
835+
*true_typeids = NULL;
836+
if (argdefaults)
837+
*argdefaults = NIL;
838+
830839
/* Get list of possible candidates from namespace search */
831840
raw_candidates = FuncnameGetCandidates(funcname, nargs,
832841
expand_variadic, expand_defaults);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy