diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-20 01:58:15 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-20 01:58:15 +0000 |
commit | 7f33aae0678123ceb6f17dbbb5aa42b39c202def (patch) | |
tree | 581afc614e4a3683733975e4d4aaa39e4dbae465 /lib | |
parent | 61022f3817dc7bc4d7b75d5e948b838ea0c5edc1 (diff) |
initialize pending_ms to zero to avoid compiler warning:
'pending_ms' may be used uninitialized in this function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/select.c b/lib/select.c index 9d75e77dd..3bfffa9c8 100644 --- a/lib/select.c +++ b/lib/select.c @@ -184,7 +184,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd, curl_socket_t maxfd; #endif struct timeval initial_tv; - int pending_ms; + int pending_ms = 0; int error; int r; int ret; @@ -361,7 +361,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) struct timeval initial_tv; bool fds_none = TRUE; unsigned int i; - int pending_ms; + int pending_ms = 0; int error; int r; @@ -505,7 +505,7 @@ int Curl_select(int nfds, { struct timeval initial_tv; int timeout_ms; - int pending_ms; + int pending_ms = 0; int error; int r; #ifdef HAVE_POLL_FINE |