postgres.git / summary / log / commit / refs

commit    ec8128465fe4251f412c60b6d1d9d7e5ef96cacf
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Tue Aug 18 15:37:04 2009 +0000
First released in: 9.0.0

    Suppress compiler warnings about uninitialized variables.


contrib/unaccent/unaccent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/unaccent/unaccent.c b/contrib/unaccent/unaccent.c index 7b5086b9587..2dddfd9f0fd 100644 --- a/contrib/unaccent/unaccent.c +++ b/contrib/unaccent/unaccent.c @@ -6,7 +6,7 @@ * Copyright (c) 2009, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/contrib/unaccent/unaccent.c,v 1.1 2009/08/18 10:34:39 teodor Exp $ + * $PostgreSQL: pgsql/contrib/unaccent/unaccent.c,v 1.2 2009/08/18 15:37:04 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -174,7 +174,7 @@ Datum unaccent_init(PG_FUNCTION_ARGS) { List *dictoptions = (List *) PG_GETARG_POINTER(0); - SuffixChar *rootSuffixTree; + SuffixChar *rootSuffixTree = NULL; bool fileloaded = false; ListCell *l; @@ -218,7 +218,7 @@ unaccent_lexize(PG_FUNCTION_ARGS) SuffixChar *rootSuffixTree = (SuffixChar*)PG_GETARG_POINTER(0); char *srcchar = (char *) PG_GETARG_POINTER(1); int32 len = PG_GETARG_INT32(2); - char *srcstart, *trgchar; + char *srcstart, *trgchar = NULL; int charlen; TSLexeme *res = NULL; SuffixChar *node; [parent: 92e05bc6a5e2]