Don't pass uninitialized mem to epoll_ctl()

This commit is contained in:
Andreas Öman 2012-10-30 10:36:43 +01:00
parent aecded7c4e
commit 2ac1b249df

View file

@ -863,6 +863,7 @@ dvb_adapter_input_dvr(void *aux)
/* Create poll */
efd = epoll_create(2);
memset(&ev, 0, sizeof(ev));
ev.events = EPOLLIN;
ev.data.fd = fd;
epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev);