summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2004-03-10 22:45:48 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-03-18 20:33:02 +0000
commit4fe3f0fa0e8a231fc577c0b8520dc57000b1e088 (patch)
tree584659c47cfdbe8b346ef180dd5711dabb4cf415 /pp_hot.c
parent5ab053b06800167d2bc083dd4186b23d7cb95fce (diff)
downloadperl-4fe3f0fa0e8a231fc577c0b8520dc57000b1e088.tar.gz
range operator warnings / 64-bit fix
Message-Id: <20040310214548.4f5e3ab1@r2d2> p4raw-id: //depot/perl@22532
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 011774c077..f0ea5728f8 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1837,8 +1837,8 @@ PP(pp_iter)
if (cx->blk_loop.iterlval) {
/* string increment */
register SV* cur = cx->blk_loop.iterlval;
- STRLEN maxlen;
- char *max = SvPV((SV*)av, maxlen);
+ STRLEN maxlen = 0;
+ char *max = SvOK((SV*)av) ? SvPV((SV*)av, maxlen) : "";
if (!SvNIOK(cur) && SvCUR(cur) <= maxlen) {
if (SvREFCNT(*itersvp) == 1 && !SvMAGICAL(*itersvp)) {
/* safe to reuse old SV */