re_intuit_start(): eliminate saved_s var
authorDavid Mitchell <davem@iabyn.com>
Tue, 4 Feb 2014 18:55:28 +0000 (18:55 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Feb 2014 13:50:10 +0000 (13:50 +0000)
commit1c1c599da682f8b16395b2bf99d95ab3e52497e3
treedcba904ca578ccf3e8d869b10011fafc31c5037c
parent0991020e5a555079245eea9e1893501593587c8a
re_intuit_start(): eliminate saved_s var

In the "find other substr" block, we enter with s pointing to the "check"
substr. We save s to saved_s, then use its value, then use s for
something else, then finally restore s from saved_s.

However, at entry to this block, we have already set check_at to s,
so use check_at rather than s as the input to the block; then there's
also no need to use saved_s to remember its value. But it turns
out we don't need to set s to the old value anyway, as the next block of
code always assigns to s anyway.
regexec.c