summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-05 09:31:32 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-05 09:31:32 +0000
commitca63c2c062609f6493d182e7aeb887435cf506bb (patch)
tree19fd7866312c14a54ad5e59ece786ebc03311d1e /dir.c
parent26dd1065f46922d6c4a007c4ddc8a61a70c6c6fc (diff)
* 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
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 698157a..25748ed 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 '?':