summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-01-09 15:29:17 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-22 11:45:05 -0700
commit7ad1e72dffee44e18d61c291c3da6e33dfcc387d (patch)
tree69332d69ed4be1241403fbb67d05f6574708a154 /pp_hot.c
parentc9d1bf8e2b28429d0317b74fdaafba4b42aca99b (diff)
downloadperl-7ad1e72dffee44e18d61c291c3da6e33dfcc387d.tar.gz
pp_hot.c: Rmv unnecessary test
The strchr() cannot not succeed unless the first test fails, so the first test need not be tried at all.
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 31b6530958..beb964943c 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1689,8 +1689,7 @@ Perl_do_readline(pTHX)
}
}
for (t1 = SvPVX_const(sv); *t1; t1++)
- if (!isALPHANUMERIC(*t1) &&
- strchr("$&*(){}[]'\";\\|?<>~`", *t1))
+ if (strchr("$&*(){}[]'\";\\|?<>~`", *t1))
break;
if (*t1 && PerlLIO_lstat(SvPVX_const(sv), &PL_statbuf) < 0) {
(void)POPs; /* Unmatched wildcard? Chuck it... */