summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index a71f5825fd..228d4b2453 100644
--- a/dir.c
+++ b/dir.c
@@ -456,7 +456,7 @@ dir_check(VALUE dir)
}
#define GetDIR(obj, dirp) do {\
- dir_check(dir);\
+ dir_check(obj); \
TypedData_Get_Struct(obj, struct dir_data, &dir_data_type, dirp); \
if (dirp->dir == NULL) dir_closed();\
} while (0)