From: Yang Tse Date: Wed, 3 Oct 2007 16:26:56 +0000 (+0000) Subject: Fix compiler warning: local variable may be used without having been initialized X-Git-Tag: curl-7_17_1~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2858935187c01a0960f4fb7f2ceae5628197fea1;p=curl Fix compiler warning: local variable may be used without having been initialized --- 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;