# HG changeset patch # User Daniel P. Berrange # Date 1231357381 -3600 # Node ID 724ce887ae630b54f2fad76d2bb54415bfe5694e # Parent 4d35f63c0e403ea412f73949c4461ac7b06dc5bb poll: don't return uninitialized * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc". diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-07 Daniel P. Berrange + + poll: don't return uninitialized + * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc". + 2009-01-06 Jeremy Olexa (tiny change) avoid compile failure on AIX 6.1 diff --git a/lib/poll.c b/lib/poll.c --- a/lib/poll.c +++ b/lib/poll.c @@ -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 @@ BOOL poll_again; MSG msg; char sockbuf[256]; - int rc; + int rc = 0; nfds_t i; if (nfd < 0 || timeout < -1)