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

Commit8544110

Browse files
committed
Avoid possibly-unportable initializer, per buildfarm warning
per notice by Gregory Stark <stark@enterprisedb.com>
1 parentdc29d70 commit8544110

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/tsearch/dict_thesaurus.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/tsearch/dict_thesaurus.c,v 1.3 2007/08/25 00:03:59 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/tsearch/dict_thesaurus.c,v 1.4 2007/09/18 15:03:23 teodor Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -653,11 +653,14 @@ thesaurus_init(PG_FUNCTION_ARGS)
653653
staticLexemeInfo*
654654
findTheLexeme(DictThesaurus*d,char*lexeme)
655655
{
656-
TheLexemekey= {lexeme,NULL},*res;
656+
TheLexemekey,*res;
657657

658658
if (d->nwrds==0)
659659
returnNULL;
660660

661+
key.lexeme=lexeme;
662+
key.entries=NULL;
663+
661664
res=bsearch(&key,d->wrds,d->nwrds,sizeof(TheLexeme),cmpLexemeQ);
662665

663666
if (res==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp