fix build · model-checking/verify-rust-std@f0b95fc (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit f0b95fc
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 2 deletions
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 | } |