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
(parent:
adf14ec
)
pp_pack.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)
pp_pack.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_pack.c
b/pp_pack.c
index
40c3100
..
7e6dc4d
100644
(file)
--- a/
pp_pack.c
+++ b/
pp_pack.c
@@
-3125,7
+3125,7
@@
PP(pp_pack)
const char *patend = pat + fromlen;
MARK++;
-
sv_setpvs(cat, ""
);
+
SvPVCLEAR(cat
);
SvUTF8_off(cat);
packlist(cat, pat, patend, MARK, SP + 1);