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.
This commit is contained in:
parent
721fc84937
commit
517c8a5324
1
dir.c
1
dir.c
@ -858,7 +858,6 @@ dir_each_entry(VALUE dir, VALUE (*each)(VALUE, VALUE), VALUE arg, int children_o
|
|||||||
#endif
|
#endif
|
||||||
path = rb_external_str_new_with_enc(name, namlen, dirp->enc);
|
path = rb_external_str_new_with_enc(name, namlen, dirp->enc);
|
||||||
(*each)(arg, path);
|
(*each)(arg, path);
|
||||||
if (dirp->dir == NULL) dir_closed();
|
|
||||||
}
|
}
|
||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user