mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Fix compiler warning: local variable may be used without having been initialized
This commit is contained in:
parent
43b10339ab
commit
2858935187
@ -183,7 +183,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
|
|||||||
fd_set fds_err;
|
fd_set fds_err;
|
||||||
curl_socket_t maxfd;
|
curl_socket_t maxfd;
|
||||||
#endif
|
#endif
|
||||||
struct timeval initial_tv;
|
struct timeval initial_tv = {0,0};
|
||||||
int pending_ms = 0;
|
int pending_ms = 0;
|
||||||
int error;
|
int error;
|
||||||
int r;
|
int r;
|
||||||
@ -358,7 +358,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
|||||||
fd_set fds_err;
|
fd_set fds_err;
|
||||||
curl_socket_t maxfd;
|
curl_socket_t maxfd;
|
||||||
#endif
|
#endif
|
||||||
struct timeval initial_tv;
|
struct timeval initial_tv = {0,0};
|
||||||
bool fds_none = TRUE;
|
bool fds_none = TRUE;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
int pending_ms = 0;
|
int pending_ms = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user