mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
fix build
This commit is contained in:
parent
bd9ce3e074
commit
fc50acae90
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user