]> git.meshlink.io Git - catta/commitdiff
### BACKPORT ###
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Oct 2005 22:55:40 +0000 (22:55 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Oct 2005 22:55:40 +0000 (22:55 +0000)
* 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

index b8a1b8207ccf280af0c1735bd939ff6dd3d57610..6531fb773859dc0d7816908de6cfc1531b52ca23 100644 (file)
@@ -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;