Skip to content

Commit 8544110

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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy