aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;