diff options
author | David Mitchell <davem@iabyn.com> | 2016-11-12 11:02:24 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-11-12 16:15:09 +0000 |
commit | e068d7ce00d1fee2864b3a347fc5eb1f6bfd6250 (patch) | |
tree | 32cc0a666ff1cea6e65fd697b1902e6b861575df /regcomp.c | |
parent | 6432a58ad9a504c2dc834eb0d131a10b4b6c886b (diff) | |
download | perl-e068d7ce00d1fee2864b3a347fc5eb1f6bfd6250.tar.gz |
S_setup_longest(): SvTAIL() used where always 0
SvTAIL() isn't set on an SV until fbm_compile() has been called,
so there's no point testing it before calling fbm_compile()
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6677,7 +6677,11 @@ S_setup_longest(pTHX_ RExC_state_t *pRExC_state, SV* sv_longest, calculate it.*/ ml = minlen ? *(minlen) : (SSize_t)longest_length; *rx_end_shift = ml - offset - - longest_length + (SvTAIL(sv_longest) != 0) + - longest_length + /* XXX SvTAIL is always false here - did you mean FBMcf_TAIL + * intead? - DAPM + + (SvTAIL(sv_longest) != 0) + */ + lookbehind; t = (eol/* Can't have SEOL and MULTI */ |