Imported Upstream version 2.14.3
[platform/upstream/git.git] / compat / poll / poll.c
index b10adc7..ae03b74 100644 (file)
@@ -438,6 +438,10 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout)
            pfd[i].revents = happened;
            rc++;
          }
+       else
+         {
+           pfd[i].revents = 0;
+         }
       }
 
   return rc;