summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-09 11:34:41 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-09 11:34:41 +0000
commitd0328fd7d629f8429b08eacaee4fd3cb902fdf5e (patch)
treec5b0b175150520f22ca33e7902fbce4c2d8d8668
parent192c1e277b50bfcbfdd3717ce2ae7c1a42fa9601 (diff)
downloadperl-d0328fd7d629f8429b08eacaee4fd3cb902fdf5e.tar.gz
newSV() + sv_upgrade() => newSV_type()
p4raw-id: //depot/perl@32912
-rw-r--r--pp_ctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index b1a4fd3b64..07f8504fb5 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3209,8 +3209,7 @@ PP(pp_require)
if (vms_unixname)
#endif
{
- namesv = newSV(0);
- sv_upgrade(namesv, SVt_PV);
+ namesv = newSV_type(SVt_PV);
for (i = 0; i <= AvFILL(ar); i++) {
SV * const dirsv = *av_fetch(ar, i, TRUE);