X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Fmtio.c;fp=lib%2Fmtio.c;h=b65a8b094840f435ce076886a9b3c39718af065b;hp=367c61df599a05fb9aca57b044d7a555b35bd918;hb=5ab220d943a861df1d8546a3ecebfddbd63494a2;hpb=16accb88e851c6d4333b536e1cf3c3f0c307c722 diff --git a/lib/mtio.c b/lib/mtio.c index 367c61d..b65a8b0 100644 --- a/lib/mtio.c +++ b/lib/mtio.c @@ -63,7 +63,8 @@ static int regfd(struct blocker *bl) { struct blocker *o; struct epoll_event evd; - + + memset(&evd, 0, sizeof(evd)); evd.events = 0; if(bl->ev & EV_READ) evd.events |= EPOLLIN; @@ -124,6 +125,7 @@ static void remfd(struct blocker *bl) if(epoll_ctl(epfd, EPOLL_CTL_DEL, bl->fd, NULL)) flog(LOG_ERR, "epoll_del on fd %i: %s", bl->fd, strerror(errno)); } else { + memset(&evd, 0, sizeof(evd)); evd.events = 0; evd.data.fd = bl->fd; for(o = fdlist[bl->fd]; o; o = o->n2) {