Fix compiler warning: local variable may be used without having been initialized

This commit is contained in:
Yang Tse 2007-10-03 16:26:56 +00:00
parent 43b10339ab
commit 2858935187
1 changed files with 2 additions and 2 deletions

View File

@ -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;