Avoid possibly-unportable initializer, per buildfarm warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:57:48 +0000 (22:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:57:48 +0000 (22:57 +0000)
contrib/tsearch2/dict_thesaurus.c

index cf3925f80c421e7c92c113f08dad1c58c1d82bfa..d7c09aafba4d3d0baaf0989db7c2bcacc48fee84 100644 (file)
@@ -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)