summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-03-25 09:52:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-03-25 09:52:27 +0000
commit523f125d4a71aa467fc6a9acfe6c304944f5a5f5 (patch)
treea27b89580fe567028dc963882f256509d3cc390d /pp.c
parent0c42fe95656e99f238a0bcf90ab2476c175615b7 (diff)
downloadperl-523f125d4a71aa467fc6a9acfe6c304944f5a5f5.tar.gz
Use sv_setpvs() like a few lines before since change #33557
p4raw-link: @33557 on //depot/perl: 502d9230ec570254fed51ae721c1da50944a5cbf p4raw-id: //depot/perl@33560
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 3551d8f1ea..8e2a395c42 100644
--- a/pp.c
+++ b/pp.c
@@ -3199,7 +3199,7 @@ PP(pp_substr)
else if (SvOK(sv)) /* is it defined ? */
(void)SvPOK_only_UTF8(sv);
else
- sv_setpvn(sv,"",0); /* avoid lexical reincarnation */
+ sv_setpvs(sv, ""); /* avoid lexical reincarnation */
}
if (SvTYPE(TARG) < SVt_PVLV) {