Skip to content

Commit 523f125

Browse files
committed
Use sv_setpvs() like a few lines before since change #33557
p4raw-link: @33557 on //depot/perl: 502d923 p4raw-id: //depot/perl@33560
1 parent 0c42fe9 commit 523f125

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
@@ -3199,7 +3199,7 @@ PP(pp_substr)
31993199
else if (SvOK(sv)) /* is it defined ? */
32003200
(void)SvPOK_only_UTF8(sv);
32013201
else
3202-
sv_setpvn(sv,"",0); /* avoid lexical reincarnation */
3202+
sv_setpvs(sv, ""); /* avoid lexical reincarnation */
32033203
}
32043204

32053205
if (SvTYPE(TARG) < SVt_PVLV) {

0 commit comments

Comments
 (0)