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
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60e1335
)
regcomp.c: use new SvPVCLEAR and constant string friendly macros
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 09:14:26 +0000
(11:14 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:01 +0000
(13:28 +0200)
regcomp.c
patch
|
blob
|
blame
|
history
diff --git
a/regcomp.c
b/regcomp.c
index
634a320
..
68417ff
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-18893,7
+18893,7
@@
Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o, const regmatch_
PERL_ARGS_ASSERT_REGPROP;
-
sv_setpvs(sv, ""
);
+
SvPVCLEAR(sv
);
if (OP(o) > REGNODE_MAX) /* regnode.type is unsigned */
/* It would be nice to FAIL() here, but this may be called from
@@
-20536,7
+20536,7
@@
S_dumpuntil(pTHX_ const regexp *r, const regnode *start, const regnode *node,
#endif
const regnode *nextbranch= NULL;
I32 word_idx;
-
sv_setpvs(sv, ""
);
+
SvPVCLEAR(sv
);
for (word_idx= 0; word_idx < (I32)trie->wordcount; word_idx++) {
SV ** const elem_ptr = av_fetch(trie_words,word_idx,0);