projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
75c20ba
)
As we know the length, replace strEQ with memEQs in S_doopen_pm().
Nicholas Clark [Tue, 9 Oct 2007 21:55:56 +0000 (21:55 +0000)]
p4raw-id: //depot/perl@32089
pp_ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_ctl.c
b/pp_ctl.c
index
0968dd4
..
39f18b2
100644
(file)
--- 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;