[vlc-devel] commit: network/poll: non initialized variable. ( Rémi Duraffort )

git version control git at videolan.org
Mon Dec 15 21:06:49 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Dec 15 20:53:51 2008 +0100| [1a582db112f0d898f93bdcc618e06d75ff8f2410] | committer: Rémi Duraffort 

network/poll: non initialized variable.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a582db112f0d898f93bdcc618e06d75ff8f2410
---

 src/network/poll.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/network/poll.c b/src/network/poll.c
index 0397df0..6c9aec3 100644
--- a/src/network/poll.c
+++ b/src/network/poll.c
@@ -64,7 +64,7 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
         WSAEventSelect (fds[i].fd, phEvents[i], events);
     }
 
-    int ret = 0, n;
+    int ret = 0, n = 0;
 
     switch (WaitForMultipleObjectsEx (nfds, phEvents, FALSE, timeout, TRUE))
     {




More information about the vlc-devel mailing list