Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jun 23, 2024
1 parent eb265d0 commit f0b95fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/src/sys/pal/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ pub fn home_dir() -> Option<PathBuf> {
&mut result,
) {
0 if !result.is_null() => {
let passwd = p.assume_init();
let ptr = passwd.pw_dir as *const _;
let ptr = (*result).pw_dir as *const _;
let bytes = CStr::from_ptr(ptr).to_bytes().to_vec();
Some(OsStringExt::from_vec(bytes))
}
Expand Down

0 comments on commit f0b95fc

Please sign in to comment.