fix build · model-checking/verify-rust-std@f0b95fc (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit f0b95fc
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -748,8 +748,7 @@ pub fn home_dir() -> Option { | ||
748 | 748 | &mut result, |
749 | 749 | ) { |
750 | 750 | 0 if !result.is_null() => { |
751 | -let passwd = p.assume_init(); | |
752 | -let ptr = passwd.pw_dir as *const _; | |
751 | +let ptr = (*result).pw_dir as *const _; | |
753 | 752 | let bytes = CStr::from_ptr(ptr).to_bytes().to_vec(); |
754 | 753 | Some(OsStringExt::from_vec(bytes)) |
755 | 754 | } |