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

Appearance settings

Commit 8544110

Browse filesBrowse files
committed
Avoid possibly-unportable initializer, per buildfarm warning
per notice by Gregory Stark <stark@enterprisedb.com>
1 parent dc29d70 commit 8544110
Copy full SHA for 8544110

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎src/backend/tsearch/dict_thesaurus.c

Copy file name to clipboardExpand all lines: src/backend/tsearch/dict_thesaurus.c
+5-2Lines 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
static LexemeInfo *
654654
findTheLexeme(DictThesaurus * d, char *lexeme)
655655
{
656-
TheLexeme key = {lexeme, NULL}, *res;
656+
TheLexeme key, *res;
657657

658658
if (d->nwrds == 0)
659659
return NULL;
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.