From 2858935187c01a0960f4fb7f2ceae5628197fea1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 3 Oct 2007 16:26:56 +0000 Subject: Fix compiler warning: local variable may be used without having been initialized --- lib/select.c | 4 ++-- 1 file 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; -- cgit v1.2.3