Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec81284

Browse files
committed
Suppress compiler warnings about uninitialized variables.
1 parent92e05bc commitec81284

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/1810:34:39 teodor Exp $
9+
* $PostgreSQL: pgsql/contrib/unaccent/unaccent.c,v 1.2 2009/08/1815: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
boolfileloaded= 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
int32len=PG_GETARG_INT32(2);
221-
char*srcstart,*trgchar;
221+
char*srcstart,*trgchar=NULL;
222222
intcharlen;
223223
TSLexeme*res=NULL;
224224
SuffixChar*node;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp