Suppress compiler warnings about uninitialized variables.

This commit is contained in:
Tom Lane 2009-08-18 15:37:04 +00:00
parent 92e05bc6a5
commit ec8128465f
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* Copyright (c) 2009, PostgreSQL Global Development Group * Copyright (c) 2009, PostgreSQL Global Development Group
* *
* IDENTIFICATION * 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) unaccent_init(PG_FUNCTION_ARGS)
{ {
List *dictoptions = (List *) PG_GETARG_POINTER(0); List *dictoptions = (List *) PG_GETARG_POINTER(0);
SuffixChar *rootSuffixTree; SuffixChar *rootSuffixTree = NULL;
bool fileloaded = false; bool fileloaded = false;
ListCell *l; ListCell *l;
@ -218,7 +218,7 @@ unaccent_lexize(PG_FUNCTION_ARGS)
SuffixChar *rootSuffixTree = (SuffixChar*)PG_GETARG_POINTER(0); SuffixChar *rootSuffixTree = (SuffixChar*)PG_GETARG_POINTER(0);
char *srcchar = (char *) PG_GETARG_POINTER(1); char *srcchar = (char *) PG_GETARG_POINTER(1);
int32 len = PG_GETARG_INT32(2); int32 len = PG_GETARG_INT32(2);
char *srcstart, *trgchar; char *srcstart, *trgchar = NULL;
int charlen; int charlen;
TSLexeme *res = NULL; TSLexeme *res = NULL;
SuffixChar *node; SuffixChar *node;