Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8dec03b

Browse files
committedMay 31, 2018
libstd/sys/unix/fs.rs: fix compilation on fuchsia
1 parent cb2a0d6 commit 8dec03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libstd/sys/unix/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl Iterator for ReadDir {
229229
// is safe to use in threaded applications and it is generally preferred
230230
// over the readdir_r(3C) function.
231231
super::os::set_errno(0);
232-
let entry_ptr = libc::readdir(self.dirp.0);
232+
let entry_ptr = libc::readdir(self.0.dirp.0);
233233
if entry_ptr.is_null() {
234234
// NULL can mean either the end is reached or an error occurred.
235235
// So we had to clear errno beforehand to check for an error now.

0 commit comments

Comments
 (0)
Please sign in to comment.