mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
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:
parent
7386d78e6d
commit
88053456f8
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user