poll: don't return uninitialized
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 7 Jan 2009 19:43:01 +0000 (20:43 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 7 Jan 2009 20:00:48 +0000 (21:00 +0100)
* lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".

ChangeLog
lib/poll.c

index 959c8c6..2eb7a93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
+
+       poll: don't return uninitialized
+       * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
+
 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
 
        avoid compile failure on AIX 6.1
index da04844..35a5d53 100644 (file)
@@ -1,7 +1,7 @@
 /* Emulation for poll(2)
    Contributed by Paolo Bonzini.
 
-   Copyright 2001, 2002, 2003, 2006, 2007, 2008 Free Software Foundation, Inc.
+   Copyright 2001-2003, 2006-2009 Free Software Foundation, Inc.
 
    This file is part of gnulib.
 
@@ -405,7 +405,7 @@ poll (pfd, nfd, timeout)
   BOOL poll_again;
   MSG msg;
   char sockbuf[256];
-  int rc;
+  int rc = 0;
   nfds_t i;
 
   if (nfd < 0 || timeout < -1)