aboutsummaryrefslogtreecommitdiffstats
path: root/lib/receiver.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/receiver.c')
-rw-r--r--lib/receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/receiver.c b/lib/receiver.c
index 9c21063..9b34494 100644
--- a/lib/receiver.c
+++ b/lib/receiver.c
@@ -55,7 +55,7 @@ static void socket_event_received(EpollThread *t, int fd, void *data) {
socklen_t addr_size = sizeof(self->addr);
int sender_fd = accept4(fd, (struct sockaddr *)&self->addr, &addr_size,
SOCK_CLOEXEC | SOCK_NONBLOCK);
- struct epoll_event event;
+ struct epoll_event event = {0};
event.events = EPOLLIN;
event.data.fd = sender_fd;
epoll_ctl(t->epoll_fd, EPOLL_CTL_ADD, sender_fd, &event);