summaryrefslogtreecommitdiff
path: root/src/sys/epoll.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/epoll.rs')
-rw-r--r--src/sys/epoll.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/epoll.rs b/src/sys/epoll.rs
index 41e5d191..0fbc9f2c 100644
--- a/src/sys/epoll.rs
+++ b/src/sys/epoll.rs
@@ -2,6 +2,7 @@ use {Errno, Result};
use libc::{self, c_int};
use std::os::unix::io::RawFd;
use std::ptr;
+use std::mem;
bitflags!(
#[repr(C)]
@@ -50,7 +51,7 @@ impl EpollEvent {
}
pub fn empty() -> Self {
- EpollEvent::new(EpollFlags::empty(), 0)
+ unsafe { mem::uninitialized::<EpollEvent>() }
}
pub fn events(&self) -> EpollFlags {