summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 12:05:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 12:05:02 +0000
commit1bee792c8564924eca34a454549cf6f27d0faf84 (patch)
treeca3c1683cf65068be21b6cefadbe5d6be8c03350
parent8c9d9627d8b1f896af23fca90f7781d6a12c6140 (diff)
downloadruby-1bee792c8564924eca34a454549cf6f27d0faf84.tar.gz
* dir.c (GetDIR): fixed a variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@25647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--dir.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7255362aef..8350a41186 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Nov 4 21:04:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (GetDIR): fixed a variable name.
+
Thu Dec 25 01:52:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (thread_start_func_2): sets native thread key.
diff --git a/dir.c b/dir.c
index 293cdaeac1..a8db466d7a 100644
--- a/dir.c
+++ b/dir.c
@@ -423,7 +423,7 @@ dir_check(VALUE dir)
}
#define GetDIR(obj, dirp) do {\
- dir_check(dir);\
+ dir_check(obj);\
Data_Get_Struct(obj, struct dir_data, dirp);\
if (dirp->dir == NULL) dir_closed();\
} while (0)
@@ -985,7 +985,6 @@ sys_warning_1(const char* mesg)
/* System call with warning */
static int
do_stat(const char *path, struct stat *pst, int flags)
-
{
int ret = stat(path, pst);
if (ret < 0 && !to_be_ignored(errno))