summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 895dd173fe..feffec22f8 100644
--- a/toke.c
+++ b/toke.c
@@ -11227,7 +11227,7 @@ S_scan_inputsymbol(pTHX_ char *start)
if (PAD_COMPNAME_FLAGS_isOUR(tmp)) {
HV * const stash = PAD_COMPNAME_OURSTASH(tmp);
HEK * const stashname = HvNAME_HEK(stash);
- SV * const sym = sv_2mortal(newSVhek(stashname));
+ SV * const sym = newSVhek_mortal(stashname);
sv_catpvs(sym, "::");
sv_catpv(sym, d+1);
d = SvPVX(sym);