Skip to content

Commit

Permalink
libstd/sys/unix/fs.rs: fix compilation on fuchsia
Browse files Browse the repository at this point in the history
  • Loading branch information
symphorien committed May 31, 2018
1 parent cb2a0d6 commit 8dec03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/fs.rs
Expand Up @@ -229,7 +229,7 @@ impl Iterator for ReadDir {
// is safe to use in threaded applications and it is generally preferred
// over the readdir_r(3C) function.
super::os::set_errno(0);
let entry_ptr = libc::readdir(self.dirp.0);
let entry_ptr = libc::readdir(self.0.dirp.0);
if entry_ptr.is_null() {
// NULL can mean either the end is reached or an error occurred.
// So we had to clear errno beforehand to check for an error now.
Expand Down

0 comments on commit 8dec03b

Please sign in to comment.