Commit ec812846 authored by Tom Lane's avatar Tom Lane

Suppress compiler warnings about uninitialized variables.

parent 92e05bc6
...@@ -6,7 +6,7 @@ ...@@ -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 ...@@ -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) ...@@ -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;
......
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