re_intuit_start(): simplify check-only origin test
authorDavid Mitchell <davem@iabyn.com>
Sun, 2 Feb 2014 19:29:35 +0000 (19:29 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Feb 2014 13:50:10 +0000 (13:50 +0000)
commit095c23e019a72f0109fb286db0ad1408bda5283d
tree2e6513a94f3d7c26ff92f1ab52a9cc4b2cba3be8
parentead917d0d9dff9f5fb7db5900650cb5b54950456
re_intuit_start(): simplify check-only origin test

In the case where there's no "other" substring, we check whether
the regex origin would be at the start of string.However, a few commits
ago we introduced the rx_origin var, and we can use this value now
simplify the test, which was effectively re-calculating rx_origin each
time.
regexec.c