summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-09-21 10:53:56 +0000
committerNicholas Clark <nick@ccl4.org>2005-09-21 10:53:56 +0000
commit2596d9fe3023e9da9e3e000993c9f26fa30909ef (patch)
tree24896940c9bb348b74e34fad515317adb56837ac /perly.y
parent8dfcc1616e57fd4d21ae26bcb2e0c92ae93ab613 (diff)
downloadperl-2596d9fe3023e9da9e3e000993c9f26fa30909ef.tar.gz
Remove the last STRLEN n_a;s that my compiler can reach.
p4raw-id: //depot/perl@25530
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 2e218624c2..37503ba24a 100644
--- a/perly.y
+++ b/perly.y
@@ -338,7 +338,7 @@ startformsub: /* NULL */ /* start a format subroutine scope */
;
/* Name of a subroutine - must be a bareword, could be special */
-subname : WORD { STRLEN n_a; const char *name = SvPV_const(((SVOP*)$1)->op_sv,n_a);
+subname : WORD { const char *const name = SvPV_nolen_const(((SVOP*)$1)->op_sv);
if (strEQ(name, "BEGIN") || strEQ(name, "END")
|| strEQ(name, "INIT") || strEQ(name, "CHECK"))
CvSPECIAL_on(PL_compcv);