From: Nicholas Clark Date: Thu, 18 Oct 2007 19:21:50 +0000 (+0000) Subject: Change 32136 introduced an error - passing a const char * to X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=024963f8e0e4bfbd631d6878a69f86cabc760a32;p=p5sagit%2Fp5-mst-13.2.git Change 32136 introduced an error - passing a const char * to sv_usepvn_flags(). Fixed. p4raw-id: //depot/perl@32139 --- diff --git a/gv.c b/gv.c index 24dabf6..23c4e9f 100644 --- a/gv.c +++ b/gv.c @@ -213,7 +213,7 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi) dVAR; const U32 old_type = SvTYPE(gv); const bool doproto = old_type > SVt_NULL; - const char * const proto = (doproto && SvPOK(gv)) ? SvPVX_const(gv) : NULL; + char * const proto = (doproto && SvPOK(gv)) ? SvPVX(gv) : NULL; const STRLEN protolen = proto ? SvCUR(gv) : 0; SV *const has_constant = doproto && SvROK(gv) ? SvRV(gv) : NULL; const U32 exported_constant = has_constant ? SvPCS_IMPORTED(gv) : 0;