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

Commita190eb3

Browse files
committed
Avoid possibly-unportable initializer, per buildfarm warning.
1 parent84a0445 commita190eb3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎contrib/tsearch2/dict_thesaurus.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.8 2007/02/01 19:10:23 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/tsearch2/dict_thesaurus.c,v 1.9 2007/07/15 22:57:48 tgl Exp $ */
22

33
/*
44
* thesaurus
@@ -696,11 +696,14 @@ thesaurus_init(PG_FUNCTION_ARGS)
696696
staticLexemeInfo*
697697
findTheLexeme(DictThesaurus*d,char*lexeme)
698698
{
699-
TheLexemekey= {lexeme,NULL},*res;
699+
TheLexemekey,*res;
700700

701701
if (d->nwrds==0)
702702
returnNULL;
703703

704+
key.lexeme=lexeme;
705+
key.entries=NULL;
706+
704707
res=bsearch(&key,d->wrds,d->nwrds,sizeof(TheLexeme),cmpLexemeQ);
705708

706709
if (res==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp