projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a71a26b
)
re_intuit_start(): localise 's' in abs anch branch
author
David Mitchell
<davem@iabyn.com>
Tue, 4 Feb 2014 22:58:37 +0000
(22:58 +0000)
committer
David Mitchell
<davem@iabyn.com>
Sat, 8 Feb 2014 13:50:22 +0000
(13:50 +0000)
The value of s within the block devoted to finding an absolutely anchored
check substr is used neither on entry or exit from the block, so make it
local.
regexec.c
patch
|
blob
|
history
diff --git
a/regexec.c
b/regexec.c
index
670ff0b
..
75ce361
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-762,6
+762,7
@@
Perl_re_intuit_start(pTHX_
{
/* Substring at constant offset from beg-of-str... */
SSize_t slen = SvCUR(check);
+ char *s;
s = HOP3c(strpos, prog->check_offset_min, strend);