mirror of
https://github.com/curl/curl.git
synced 2026-07-23 09:47:20 +03:00
Fix compiler warning: local variable may be used without having been initialized
This commit is contained in:
parent
43b10339ab
commit
2858935187
1 changed files with 2 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
|
|||
fd_set fds_err;
|
||||
curl_socket_t maxfd;
|
||||
#endif
|
||||
struct timeval initial_tv;
|
||||
struct timeval initial_tv = {0,0};
|
||||
int pending_ms = 0;
|
||||
int error;
|
||||
int r;
|
||||
|
|
@ -358,7 +358,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
|||
fd_set fds_err;
|
||||
curl_socket_t maxfd;
|
||||
#endif
|
||||
struct timeval initial_tv;
|
||||
struct timeval initial_tv = {0,0};
|
||||
bool fds_none = TRUE;
|
||||
unsigned int i;
|
||||
int pending_ms = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue