summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-25 13:53:28 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-25 13:53:28 +0000
commita3179684398978e8bf4afba360eb728e4215d751 (patch)
treec40ed61c5b3f5d74e8abcffa0547e99d27aecdef /mro.c
parent2456140e9cfda88ed22ea1c7290a61234c84aea6 (diff)
downloadperl-a3179684398978e8bf4afba360eb728e4215d751.tar.gz
Use newSVpvs_flags() instead of sv_2mortal(newSVpvs())
And similarly for newSVpvn() for a known length.
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mro.c b/mro.c
index fd805d6516..a5f1de0ab0 100644
--- a/mro.c
+++ b/mro.c
@@ -752,7 +752,7 @@ Perl_mro_package_moved(pTHX_ HV * const stash, HV * const oldstash,
}
if (name_count == 1) {
if (HEK_LEN(*namep) == 4 && strnEQ(HEK_KEY(*namep), "main", 4)) {
- namesv = sv_2mortal(newSVpvs(""));
+ namesv = newSVpvs_flags("", SVs_TEMP);
}
else {
namesv = sv_2mortal(newSVhek(*namep));