From: Father Chrysostomos Date: Wed, 27 Jun 2012 19:41:56 +0000 (-0700) Subject: pp.c: Restore uninit warning to study X-Git-Tag: upstream/5.20.0~6222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fa930f22a3485f9bb86d555541c3ac82dc767b6;p=platform%2Fupstream%2Fperl.git pp.c: Restore uninit warning to study Also, prevent a crash when SvCUR is used on a non-PV. --- diff --git a/pp.c b/pp.c index c7d1841..1742baa 100644 --- a/pp.c +++ b/pp.c @@ -652,7 +652,7 @@ PP(pp_study) dVAR; dSP; dPOPss; STRLEN len; - len = SvCUR(sv); + (void)SvPV(sv, len); if (len == 0 || len > I32_MAX || !SvPOK(sv) || SvUTF8(sv) || SvVALID(sv)) { /* Historically, study was skipped in these cases. */ RETPUSHNO;