Avoid possibly-unportable initializer, per buildfarm warning
per notice by Gregory Stark <stark@enterprisedb.com>
This commit is contained in:
parent
dc29d703d8
commit
8544110042
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/tsearch/dict_thesaurus.c,v 1.3 2007/08/25 00:03:59 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/tsearch/dict_thesaurus.c,v 1.4 2007/09/18 15:03:23 teodor Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -653,11 +653,14 @@ thesaurus_init(PG_FUNCTION_ARGS)
|
|||||||
static LexemeInfo *
|
static LexemeInfo *
|
||||||
findTheLexeme(DictThesaurus * d, char *lexeme)
|
findTheLexeme(DictThesaurus * d, char *lexeme)
|
||||||
{
|
{
|
||||||
TheLexeme key = {lexeme, NULL}, *res;
|
TheLexeme key, *res;
|
||||||
|
|
||||||
if (d->nwrds == 0)
|
if (d->nwrds == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
key.lexeme = lexeme;
|
||||||
|
key.entries = NULL;
|
||||||
|
|
||||||
res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);
|
res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);
|
||||||
|
|
||||||
if (res == NULL)
|
if (res == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user