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:
23fe4d6
)
In pp_qr, use gv_stashsv() directly on the SV.
author
Nicholas Clark
<nick@ccl4.org>
Sat, 17 Jul 2010 12:00:46 +0000
(13:00 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Sat, 17 Jul 2010 12:00:46 +0000
(13:00 +0100)
Brought to you by the campaign for the elimination of strlen().
pp_hot.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_hot.c
b/pp_hot.c
index
217ee26
..
d5a4572
100644
(file)
--- a/
pp_hot.c
+++ b/
pp_hot.c
@@
-1218,7
+1218,7
@@
PP(pp_qr)
SvROK_on(rv);
if (pkg) {
- HV
* const stash = gv_stashpv(SvPV_nolen(pkg)
, GV_ADD);
+ HV
*const stash = gv_stashsv(pkg
, GV_ADD);
SvREFCNT_dec(pkg);
(void)sv_bless(rv, stash);
}