diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-11-09 10:56:28 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-11-09 10:56:28 +0000 |
commit | 238d24b47319609016b1ceeca1f7146f7484b9a0 (patch) | |
tree | 179965f5b3eabadc575ec6a84e6ec7c5b01246aa /pp_ctl.c | |
parent | 3bcf5ed8853d0fff9200cd9bd765e678659eb9c7 (diff) | |
download | perl-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |