This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Exit early from Perl_fbm_compile() if the SV is already "compiled".
[perl5.git]
/
util.c
diff --git
a/util.c
b/util.c
index
74d7bb8
..
165e61a
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-559,6
+559,9
@@
Perl_fbm_compile(pTHX_ SV *sv, U32 flags)
if (SvSCREAM(sv))
return;
+ if (SvVALID(sv))
+ return;
+
if (flags & FBMcf_TAIL) {
MAGIC * const mg = SvUTF8(sv) && SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_utf8) : NULL;
sv_catpvs(sv, "\n"); /* Taken into account in fbm_instr() */