]> granicus.if.org Git - postgresql/commit
Fix minor bug in regexp makesearch() function.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Sep 2015 00:14:58 +0000 (20:14 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Sep 2015 00:15:26 +0000 (20:15 -0400)
commit5bd86b21dfbca103ffb142da55cb25211395d3a9
treeaf55573d6aef9f7d903461f5adeabad1209da417
parent60fe73b79ce8a65ee4eda34a2f4f204a95081603
Fix minor bug in regexp makesearch() function.

The list-wrangling here was done wrong, allowing the same state to get
put into the list twice.  The following loop then would clone it twice.
The second clone would wind up with no inarcs, so that there was no
observable misbehavior AFAICT, but a useless state in the finished NFA
isn't an especially good thing.
src/backend/regex/regcomp.c