diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 09:31:32 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 09:31:32 +0000 |
| commit | 4609b77cdef17a658aec3aed32688412be76e42e (patch) | |
| tree | 19fd7866312c14a54ad5e59ece786ebc03311d1e /dir.c | |
| parent | 5d5e680d3097f01b44d3498133e683a1ee1dd5f6 (diff) | |
| download | ruby-4609b77cdef17a658aec3aed32688412be76e42e.tar.gz ruby-4609b77cdef17a658aec3aed32688412be76e42e.tar.xz ruby-4609b77cdef17a658aec3aed32688412be76e42e.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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 '?': |
