]> git.ipfire.org Git - thirdparty/postgresql.git/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:23 +0000 (20:15 -0400)
commit3718015e468855441672b0b341f075cd0ba0f726
tree69500f10f405ba44c813bbe1f5aab988f18038c0
parent67518a1415691f37e8bd0e93e01282f1d461ffa9
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