summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-11-09 10:56:28 +0000
committerNicholas Clark <nick@ccl4.org>2005-11-09 10:56:28 +0000
commit238d24b47319609016b1ceeca1f7146f7484b9a0 (patch)
tree179965f5b3eabadc575ec6a84e6ec7c5b01246aa /pp_ctl.c
parent3bcf5ed8853d0fff9200cd9bd765e678659eb9c7 (diff)
downloadperl-238d24b47319609016b1ceeca1f7146f7484b9a0.tar.gz
Remove superfluous strlen() from pp_require().
p4raw-id: //depot/perl@26059
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 71afbda0cb..ed64242076 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3313,10 +3313,8 @@ PP(pp_require)
else
SETERRNO(0, SS_NORMAL);
- /* FIXME - is name ever assigned to after the SvPVX_const that also set
- len? If no, then this strlen() is superfluous. */
/* Assume success here to prevent recursive requirement. */
- len = strlen(name);
+ /* name is never assigned to again, so len is still strlen(name) */
/* Check whether a hook in @INC has already filled %INC */
if (!hook_sv) {
(void)hv_store(GvHVn(PL_incgv), name, len, newSVpv(CopFILE(&PL_compiling),0),0);