diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-15 00:08:34 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-15 00:10:11 +0900 |
| commit | 517c8a532425a28ee2641fc100a91a691b501fe8 (patch) | |
| tree | 04abc7c322dd510c8045a9877fff5f05123cf4a4 | |
| parent | 721fc849370d88b87703b00ed1442295c1a94027 (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.
| -rw-r--r-- | dir.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; } |
