diff --git a/platform/linux/mod.rs b/platform/linux/mod.rs index 7ee17c356..e30817b5d 100644 --- a/platform/linux/mod.rs +++ b/platform/linux/mod.rs @@ -474,9 +474,9 @@ impl UnixOneShotServer { Vec, Vec),UnixError> { unsafe { - let mut sockaddr = mem::uninitialized(); - let mut sockaddr_len = mem::uninitialized(); - let client_fd = libc::accept(self.fd, &mut sockaddr, &mut sockaddr_len); + let sockaddr: *mut sockaddr = ptr::null_mut(); + let sockaddr_len: *mut socklen_t = ptr::null_mut(); + let client_fd = libc::accept(self.fd, sockaddr, sockaddr_len); if client_fd < 0 { return Err(UnixError::last()) }