From: Lennart Poettering Date: Mon, 3 Oct 2005 22:55:40 +0000 (+0000) Subject: ### BACKPORT ### X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=ed851746209a39f7c835d74aa1996a478e1b7702;p=catta ### BACKPORT ### * Fix a hard to trigger bug where events are dispatched that didn't happen in the first place. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@682 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-common/simple-watch.c b/avahi-common/simple-watch.c index b8a1b82..6531fb7 100644 --- a/avahi-common/simple-watch.c +++ b/avahi-common/simple-watch.c @@ -153,6 +153,7 @@ static AvahiWatch* watch_new(const AvahiPoll *api, int fd, AvahiWatchEvent event w->pollfd.fd = fd; w->pollfd.events = event; + w->pollfd.revents = 0; w->callback = callback; w->userdata = userdata;