Skip to content

Commit 3885921

Browse files
committed
pp_system: use newSVtype_mortal instead of two functions
1 parent b8d4d61 commit 3885921

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pp_sys.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,8 +4612,7 @@ PP_wrapped(pp_system, 0, 1)
46124612
* as numeric, not just retain the string value.
46134613
*/
46144614
if (SvNIOK(origsv) || SvNIOKp(origsv)) {
4615-
copysv = newSV_type(SVt_PVNV);
4616-
sv_2mortal(copysv);
4615+
copysv = newSV_type_mortal(SVt_PVNV);
46174616
if (SvPOK(origsv) || SvPOKp(origsv)) {
46184617
pv = SvPV_nomg(origsv, len);
46194618
sv_setpvn_fresh(copysv, pv, len);

0 commit comments

Comments
 (0)