Skip to content

Commit 01b8591

Browse files
committed
pp_system: use newSVtype_mortal instead of two functions
1 parent a3a284f commit 01b8591

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
@@ -4610,8 +4610,7 @@ PP_wrapped(pp_system, 0, 1)
46104610
* as numeric, not just retain the string value.
46114611
*/
46124612
if (SvNIOK(origsv) || SvNIOKp(origsv)) {
4613-
copysv = newSV_type(SVt_PVNV);
4614-
sv_2mortal(copysv);
4613+
copysv = newSV_type_mortal(SVt_PVNV);
46154614
if (SvPOK(origsv) || SvPOKp(origsv)) {
46164615
pv = SvPV_nomg(origsv, len);
46174616
sv_setpvn_fresh(copysv, pv, len);

0 commit comments

Comments
 (0)