From 1a5beef51f5c32081116e502c1c90a3e32813020 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 2 May 2003 01:44:59 +0000 Subject: - Fix bug #1405: allow multiple pattern-specific variables to match a target. - Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port. --- dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 1de62e5..8050a36 100644 --- a/dir.c +++ b/dir.c @@ -590,7 +590,8 @@ dir_contents_file_exists_p (struct directory_contents *dir, char *filename) #endif #ifdef __EMX__ - _fnlwr(filename); /* lower case for FAT drives */ + if (filename != 0) + _fnlwr (filename); /* lower case for FAT drives */ #endif #ifdef VMS @@ -736,8 +737,7 @@ file_exists_p (char *name) dirend = strrchr (name, ']'); if (dirend == 0) dirend = strrchr (name, ':'); - dirend++; - if (dirend == (char *)1) + if (dirend == (char *)0) return dir_file_exists_p ("[]", name); #else /* !VMS */ dirend = strrchr (name, '/'); -- cgit v1.2.3