diff options
| author | Josh Stone <jistone@redhat.com> | 2019-06-26 15:03:15 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-06-26 15:03:15 -0700 |
| commit | 3ba1f39fe7bad6234419a33a9fbf1551e85dfa2d (patch) | |
| tree | 23f38acff08ac7fe85e7e61b84ea7c01f0e7c79a /src/libstd/sys/unix/process/mod.rs | |
| parent | d3e2cec29225a46298ec4ebf082f34ebd7cfeecf (diff) | |
| download | rust-3ba1f39fe7bad6234419a33a9fbf1551e85dfa2d.tar.gz rust-3ba1f39fe7bad6234419a33a9fbf1551e85dfa2d.zip | |
Avoid mem::uninitialized() in std::sys::unix
For `libc` types that will be initialized in FFI calls, we can just use `MaybeUninit` and then pass around raw pointers. For `sun_path_offset()`, which really wants `offset_of`, all callers have a real `sockaddr_un` available, so we can use that reference.
Diffstat (limited to 'src/libstd/sys/unix/process/mod.rs')
0 files changed, 0 insertions, 0 deletions
