diff options
author | Felipe Pena <felipe@php.net> | 2009-01-02 21:28:28 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-01-02 21:28:28 +0000 |
commit | 9c2043d41abef371a2198f796f29a080d649babb (patch) | |
tree | 9baa726dcdb64ecde6e33efcb23d4fe3da5d9c42 /main | |
parent | bfcea7ffa8f31a1696dae3dbf2ddae6a31730897 (diff) | |
download | php-git-9c2043d41abef371a2198f796f29a080d649babb.tar.gz |
- MFH: Working with unintialized errno (#46917, noticed by Jost Boekemeier)
Diffstat (limited to 'main')
-rw-r--r-- | main/network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/network.c b/main/network.c index 7d6bb61f68..613c070c28 100644 --- a/main/network.c +++ b/main/network.c @@ -1147,6 +1147,7 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; } + errno = 0; n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL); if (n >= 0) { |