]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Don't pass uninitialized mem to epoll_ctl()
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 30 Oct 2012 09:36:43 +0000 (10:36 +0100)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 30 Oct 2012 09:36:43 +0000 (10:36 +0100)
src/dvb/dvb_adapter.c

index 650321f3b6d60efe0473df568bd2f8495837ca92..6250363de1bd58cad8b18f1f3320bcc3509be4ca 100644 (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);