Skip to content

Commit 81dcd77

Browse files
committed
pp_index - create a SVt_PV directly, not via upgrade
Rather than create an `SVt_NULL`, then immediately to `sv_upgrade` it (within the `sv_usepvn` call) to an SVt_PV, just create the SVt_PV in the first place.
1 parent 25339ee commit 81dcd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3855,7 +3855,7 @@ PP(pp_index)
38553855
* the routine that contains the new byte string, and donate it
38563856
* to temp to ensure it will get free()d */
38573857
if (free_little_p) {
3858-
little = temp = newSV_type(SVt_NULL);
3858+
little = temp = newSV_type(SVt_PV);
38593859
sv_usepvn(temp, (char *) little_p, llen);
38603860
little_p = SvPVX_const(little);
38613861
}

0 commit comments

Comments
 (0)