projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc6f1d
)
Avoid possibly-unportable initializer, per buildfarm warning.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:57:48 +0000
(22:57 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:57:48 +0000
(22:57 +0000)
contrib/tsearch2/dict_thesaurus.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/dict_thesaurus.c
b/contrib/tsearch2/dict_thesaurus.c
index cf3925f80c421e7c92c113f08dad1c58c1d82bfa..d7c09aafba4d3d0baaf0989db7c2bcacc48fee84 100644
(file)
--- a/
contrib/tsearch2/dict_thesaurus.c
+++ b/
contrib/tsearch2/dict_thesaurus.c
@@
-696,11
+696,14
@@
thesaurus_init(PG_FUNCTION_ARGS)
static LexemeInfo *
findTheLexeme(DictThesaurus * d, char *lexeme)
{
- TheLexeme key
= {lexeme, NULL}
, *res;
+ TheLexeme key, *res;
if (d->nwrds == 0)
return NULL;
+ key.lexeme = lexeme;
+ key.entries = NULL;
+
res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);
if (res == NULL)