summaryrefslogtreecommitdiff
path: root/lib/select.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-03 16:26:56 +0000
committerYang Tse <yangsita@gmail.com>2007-10-03 16:26:56 +0000
commit2858935187c01a0960f4fb7f2ceae5628197fea1 (patch)
tree4d734a0b9f9dfcb185d3dfe07a57ef24c021efe9 /lib/select.c
parent43b10339abc7bed4c199e91e08ccdc5839416767 (diff)
downloadcurl-2858935187c01a0960f4fb7f2ceae5628197fea1.tar.gz
Fix compiler warning: local variable may be used without having been initialized
Diffstat (limited to 'lib/select.c')
-rw-r--r--lib/select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/select.c b/lib/select.c
index 28bb141b1..3f81ba180 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -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;