Re: [COMMITTERS] pgsql: Avoid possibly-unportable initializer, per buildfarm warning. - Mailing list pgsql-patches

From Gregory Stark
Subject Re: [COMMITTERS] pgsql: Avoid possibly-unportable initializer, per buildfarm warning.
Date
Msg-id 87hclto1sx.fsf@oxford.xeocode.com
Whole thread Raw
List pgsql-patches
"Tom Lane" <tgl@postgresql.org> writes:

> Log Message:
> -----------
> Avoid possibly-unportable initializer, per buildfarm warning.

This was lost in the tsearch2 merge.



Index: src/backend/tsearch/dict_thesaurus.c
===================================================================
RCS file: /home/stark/src/REPOSITORY/pgsql/src/backend/tsearch/dict_thesaurus.c,v
retrieving revision 1.3
diff -c -r1.3 dict_thesaurus.c
*** src/backend/tsearch/dict_thesaurus.c    25 Aug 2007 00:03:59 -0000    1.3
--- src/backend/tsearch/dict_thesaurus.c    17 Sep 2007 13:30:27 -0000
***************
*** 653,663 ****
  static LexemeInfo *
  findTheLexeme(DictThesaurus * d, char *lexeme)
  {
!     TheLexeme    key = {lexeme, NULL}, *res;

      if (d->nwrds == 0)
          return NULL;

      res = bsearch(&key, d->wrds, d->nwrds, sizeof(TheLexeme), cmpLexemeQ);

      if (res == NULL)
--- 653,666 ----
  static LexemeInfo *
  findTheLexeme(DictThesaurus * d, char *lexeme)
  {
!     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)

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

pgsql-patches by date:

Previous
From: "Pavan Deolasee"
Date:
Subject: Re: HOT synced with HEAD
Next
From: Tom Lane
Date:
Subject: Re: HOT synced with HEAD