Commit 28589351 authored by Yang Tse's avatar Yang Tse
Browse files

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

parent 43b10339
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;