Fix minor bug in regexp makesearch() function.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d76113dda77417d176e299b167e95db0266986d5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-09-10T00:15:10Z
Releases: 9.5.0
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.

Files

PathChange+/−
src/backend/regex/regcomp.c modified +12 −7