summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-13 22:54:10 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-13 22:54:10 +0000
commitf2b990bf33ddc9a2c27b053bb94a963bce0c09ce (patch)
tree639f2969570516ca882598101886056503f93def /scope.c
parentc75bde89ee55ab4c3ff1da2c3438b11554305529 (diff)
downloadperl-f2b990bf33ddc9a2c27b053bb94a963bce0c09ce.tar.gz
replace NEWSV(), SvSetSV() with newSVsv()
p4raw-id: //depot/perl@23795
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index c158544f63..db55735f33 100644
--- a/scope.c
+++ b/scope.c
@@ -350,9 +350,8 @@ Perl_save_hash(pTHX_ GV *gv)
void
Perl_save_item(pTHX_ register SV *item)
{
- register SV *sv = NEWSV(0,0);
+ register SV *sv = newSVsv(item);
- sv_setsv(sv,item);
SSCHECK(3);
SSPUSHPTR(item); /* remember the pointer */
SSPUSHPTR(sv); /* remember the value */