X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fsimple-watch.c;h=6531fb773859dc0d7816908de6cfc1531b52ca23;hb=d322a943be5387a539f8f3ea3a19a7e2ed5a55a2;hp=b8a1b8207ccf280af0c1735bd939ff6dd3d57610;hpb=d3e893754d3158b72d488e515535dfcac980e1c3;p=catta 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;