From ed851746209a39f7c835d74aa1996a478e1b7702 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Oct 2005 22:55:40 +0000 Subject: [PATCH] ### 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 --- avahi-common/simple-watch.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5