Fix minor bug in regexp makesearch() function.
authorTom Lane
Thu, 10 Sep 2015 00:14:58 +0000 (20:14 -0400)
committerTom Lane
Thu, 10 Sep 2015 00:15:10 +0000 (20:15 -0400)
commitd76113dda77417d176e299b167e95db0266986d5
treeb362807bf71ccc254b3159ba5fe69b6cd9119c5d
parent65f37b3e9b0aea59cc98a2e23f45bb8fb6a56395
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