diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 09:30:24 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 09:30:24 +0000 |
commit | 4b0f7cecc41ec1ae015eed42bd0b82538e8b9408 (patch) | |
tree | c182adeccb735ca3b281c9db1afd58b1ce38319d /dir.c | |
parent | 1ff45719130e7224b07e9625963248f9c408bdd7 (diff) | |
download | ruby-4b0f7cecc41ec1ae015eed42bd0b82538e8b9408.tar.gz |
* dir.c (rb_glob): fixed mismatch of argument.
* dir.c (fnmatch): removed unnecessary code. (by string.c 1.219)
* win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -303,8 +303,6 @@ fnmatch(p, s, flags) const char *ptmp = 0; const char *stmp = 0; - if (!p) p = ""; - if (!s) s = ""; if (pathname) { while (1) { if (p[0] == '*' && p[1] == '*' && p[2] == '/') { @@ -1407,7 +1405,7 @@ rb_glob(path, func, arg) args.func = func; args.arg = arg; - status = rb_glob2(rb_str_new2(path), 0, rb_glob_caller, &args); + status = rb_glob2(rb_str_new2(path), 0, 0, rb_glob_caller, &args); if (status) rb_jump_tag(status); } @@ -1574,10 +1572,6 @@ dir_s_aref(obj, str) * Dir.glob("*") #=> ["config.h", "main.rb"] * Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", "main.rb"] * - * Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", - * "main.rb"] - * Dir.glob("**.rb") #=> [] - * * rbfiles = File.join("**", "*.rb") * Dir.glob(rbfiles) #=> ["main.rb", * "lib/song.rb", |