diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dir.c | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -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. @@ -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)) |