summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-03 17:42:27 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-03 17:42:27 +0000
commit84bafc024a74c819ac3d2b4406253dbe983e6502 (patch)
tree078faf96a8959e8d6ede5d541caf7896de32c569 /pp_ctl.c
parent59cd0e26eb6c10499b25d783562357dd68cc16f2 (diff)
downloadperl-84bafc024a74c819ac3d2b4406253dbe983e6502.tar.gz
Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and rework
sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 8681cd9767..e1ad0e9486 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1643,12 +1643,12 @@ PP(pp_caller)
PUSHs(sv_2mortal(newSViv((I32)cx->blk_sub.hasargs)));
}
else {
- PUSHs(sv_2mortal(newSVpvs("(unknown)")));
+ PUSHs(newSVpvs_flags("(unknown)", SVs_TEMP));
PUSHs(sv_2mortal(newSViv((I32)cx->blk_sub.hasargs)));
}
}
else {
- PUSHs(sv_2mortal(newSVpvs("(eval)")));
+ PUSHs(newSVpvs_flags("(eval)", SVs_TEMP));
PUSHs(sv_2mortal(newSViv(0)));
}
gimme = (I32)cx->blk_gimme;