poll: don't return uninitialized

* gnulib/lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
[sync from gnulib also adjusts cpp indentation to reflect nesting.]
This commit is contained in:
Jim Meyering 2009-01-08 08:55:20 +00:00
parent 7386d78e6d
commit 88053456f8
2 changed files with 33 additions and 27 deletions

View File

@ -1,3 +1,9 @@
Thu Jan 8 09:48:04 CET 2009 Daniel P. Berrange <berrange@redhat.com>
poll: don't return uninitialized
* gnulib/lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
[sync from gnulib also adjusts cpp indentation to reflect nesting.]
Wed Jan 7 17:12:33 +0100 2009 Jim Meyering <meyering@redhat.com> Wed Jan 7 17:12:33 +0100 2009 Jim Meyering <meyering@redhat.com>
add more files pulled in via yesterday's gnulib upgrade add more files pulled in via yesterday's gnulib upgrade

View File

@ -1,7 +1,7 @@
/* Emulation for poll(2) /* Emulation for poll(2)
Contributed by Paolo Bonzini. 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. This file is part of gnulib.
@ -405,7 +405,7 @@ poll (pfd, nfd, timeout)
BOOL poll_again; BOOL poll_again;
MSG msg; MSG msg;
char sockbuf[256]; char sockbuf[256];
int rc; int rc = 0;
nfds_t i; nfds_t i;
if (nfd < 0 || timeout < -1) if (nfd < 0 || timeout < -1)