8000 Suppress compiler warnings about uninitialized variables. · larkly/postgres-docker@ec81284 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec81284

Browse files
committed
Suppress compiler warnings about uninitialized variables.
1 parent 92e05bc commit ec81284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/unaccent/unaccent.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2009, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/contrib/unaccent/unaccent.c,v 1.1 2009/08/18 10:34:39 teodor Exp $
9+
* $PostgreSQL: pgsql/contrib/unaccent/unaccent.c,v 1.2 2009/08/18 15:37:04 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -174,7 +174,7 @@ Datum
174174
unaccent_init(PG_FUNCTION_ARGS)
175175
{
176176
List *dictoptions = (List *) PG_GETARG_POINTER(0);
177-
SuffixChar *rootSuffixTree;
177+
SuffixChar *rootSuffixTree = NULL;
178178
bool fileloaded = false;
179179
ListCell *l;
180180

@@ -218,7 +218,7 @@ unaccent_lexize(PG_FUNCTION_ARGS)
218218
SuffixChar *rootSuffixTree = (SuffixChar*)PG_GETARG_POINTER(0);
219219
char *srcchar = (char *) PG_GETARG_POINTER(1);
220220
int32 len = PG_GETARG_INT32(2);
221-
char *srcstart, *trgchar;
221+
char *srcstart, *trgchar = NULL;
222222
int charlen;
223223
TSLexeme *res = NULL;
224224
SuffixChar *node;

0 commit comments

Comments
 (0)
0