Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/lthread_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _lthread_poller_poll(struct timespec t)
inline void
_lthread_poller_ev_clear_rd(int fd)
{
struct epoll_event ev;
struct epoll_event ev = {0};
int ret = 0;
struct lthread_sched *sched = lthread_get_sched();

Expand All @@ -63,7 +63,7 @@ _lthread_poller_ev_clear_rd(int fd)
inline void
_lthread_poller_ev_clear_wr(int fd)
{
struct epoll_event ev;
struct epoll_event ev = {0};
int ret = 0;
struct lthread_sched *sched = lthread_get_sched();

Expand All @@ -76,7 +76,7 @@ _lthread_poller_ev_clear_wr(int fd)
inline void
_lthread_poller_ev_register_rd(int fd)
{
struct epoll_event ev;
struct epoll_event ev = {0};
int ret = 0;
struct lthread_sched *sched = lthread_get_sched();

Expand All @@ -91,7 +91,7 @@ _lthread_poller_ev_register_rd(int fd)
inline void
_lthread_poller_ev_register_wr(int fd)
{
struct epoll_event ev;
struct epoll_event ev = {0};
int ret = 0;
struct lthread_sched *sched = lthread_get_sched();

Expand Down Expand Up @@ -138,7 +138,7 @@ _lthread_poller_ev_register_trigger(void)
{
struct lthread_sched *sched = lthread_get_sched();
int ret = 0;
struct epoll_event ev;
struct epoll_event ev = {0};

if (!sched->eventfd) {
sched->eventfd = eventfd(0, EFD_NONBLOCK);
Expand Down