summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-14 15:08:34 (GMT)
committerYusuke Endoh <mame@ruby-lang.org>2019-07-14 15:10:11 (GMT)
commit517c8a532425a28ee2641fc100a91a691b501fe8 (patch)
tree04abc7c322dd510c8045a9877fff5f05123cf4a4 /dir.c
parent721fc849370d88b87703b00ed1442295c1a94027 (diff)
dir.c (dir_each_entry): remove unnecessary check
I guess that this check was to detect re-entrance (maybe callcc?). But currently it does not work as intended.
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 1dbedb7..18c10f2 100644
--- a/dir.c
+++ b/dir.c
@@ -858,7 +858,6 @@ dir_each_entry(VALUE dir, VALUE (*each)(VALUE, VALUE), VALUE arg, int children_o
#endif
path = rb_external_str_new_with_enc(name, namlen, dirp->enc);
(*each)(arg, path);
- if (dirp->dir == NULL) dir_closed();
}
return dir;
}