summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-09 21:55:56 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-09 21:55:56 +0000
commitce9440c8a632181326295941c376dfe0ad85b93f (patch)
tree3a28a56f47ae912e90dbc3412a40004a48e40363 /pp_ctl.c
parent75c20bacb9ae327aacf009e8bfd9ed768a1e07b1 (diff)
downloadperl-ce9440c8a632181326295941c376dfe0ad85b93f.tar.gz
As we know the length, replace strEQ with memEQs in S_doopen_pm().
p4raw-id: //depot/perl@32089
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 0968dd47a3..39f18b227b 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3024,7 +3024,7 @@ S_doopen_pm(pTHX_ const char *name, const STRLEN namelen)
{
PerlIO *fp;
- if (namelen > 3 && strEQ(name + namelen - 3, ".pm")) {
+ if (namelen > 3 && memEQs(name + namelen - 3, 3, ".pm")) {
SV *const pmcsv = newSV(namelen + 2);
char *const pmc = SvPVX(pmcsv);
Stat_t pmcstat;