fix hlfinditem function. Thanks to "Stphane Bidoul" <stephane.bidoul@softwareag.com>.
Teodor Sigaev <teodor@sigaev.ru>
fix hlfinditem function. Thanks to "Stphane Bidoul" <stephane.bidoul@softwareag.com>. The 'word' variable there is initialised from the prs->words array, but immediately after, that array may be reallocated, thus leaving word pointing to unallocated memory.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/tsearch2/expected/tsearch2.out | modified | +5 −5 |
| contrib/tsearch2/ts_cfg.c | modified | +2 −1 |