diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-18 15:37:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-18 15:37:04 +0000 |
commit | ec8128465fe4251f412c60b6d1d9d7e5ef96cacf (patch) | |
tree | 4f3897d54ff73fa2f7983f69573c26d060ce32fe | |
parent | 92e05bc6a5e2c8972bd128cbb9914b4149d58709 (diff) | |
download | postgresql-ec8128465fe4251f412c60b6d1d9d7e5ef96cacf.tar.gz postgresql-ec8128465fe4251f412c60b6d1d9d7e5ef96cacf.zip |
Suppress compiler warnings about uninitialized variables.
-rw-r--r-- | contrib/unaccent/unaccent.c | 6 |
1 files 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; |