summaryrefslogtreecommitdiff
path: root/implicit.c
diff options
context:
space:
mode:
Diffstat (limited to 'implicit.c')
-rw-r--r--implicit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/implicit.c b/implicit.c
index 878d154..014828f 100644
--- a/implicit.c
+++ b/implicit.c
@@ -356,9 +356,8 @@ pattern_search (struct file *file, int archive,
/* Didn't find it yet: check for DOS-type directories. */
if (check_lastslash)
{
- char *b = strrchr (target, '\\');
- check_lastslash = !(b ? b > lastslash
- : (target[0] && target[1] == ':'));
+ char *b = strchr (target, '\\');
+ check_lastslash = !(b || (target[0] && target[1] == ':'));
}
#endif
#endif