From ca63c2c062609f6493d182e7aeb887435cf506bb Mon Sep 17 00:00:00 2001 From: ocean Date: Sat, 5 Mar 2005 09:31:32 +0000 Subject: * dir.c (fnmatch): removed unnecessary code. (ruby_1_8 didn't have String#clear, so [ruby-dev:24749] didn't affect it) * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.101.2.14) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 698157ad67..25748ed4e2 100644 --- a/dir.c +++ b/dir.c @@ -145,8 +145,6 @@ fnmatch(pat, string, flags) int period = !(flags & FNM_DOTMATCH); int nocase = flags & FNM_CASEFOLD; - if (!pat) pat = ""; - if (!string) string = ""; while (c = *pat++) { switch (c) { case '?': -- cgit v1.2.3