Commit 7f33aae0 authored by Yang Tse's avatar Yang Tse
Browse files

initialize pending_ms to zero to avoid compiler warning:

'pending_ms' may be used uninitialized in this function
parent 61022f38
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -184,7 +184,7 @@ int Curl_socket_ready(curl_socket_t readfd, curl_socket_t writefd,
  curl_socket_t maxfd;
  curl_socket_t maxfd;
#endif
#endif
  struct timeval initial_tv;
  struct timeval initial_tv;
  int pending_ms;
  int pending_ms = 0;
  int error;
  int error;
  int r;
  int r;
  int ret;
  int ret;
@@ -361,7 +361,7 @@ int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
  struct timeval initial_tv;
  struct timeval initial_tv;
  bool fds_none = TRUE;
  bool fds_none = TRUE;
  unsigned int i;
  unsigned int i;
  int pending_ms;
  int pending_ms = 0;
  int error;
  int error;
  int r;
  int r;


@@ -505,7 +505,7 @@ int Curl_select(int nfds,
{
{
  struct timeval initial_tv;
  struct timeval initial_tv;
  int timeout_ms;
  int timeout_ms;
  int pending_ms;
  int pending_ms = 0;
  int error;
  int error;
  int r;
  int r;
#ifdef HAVE_POLL_FINE
#ifdef HAVE_POLL_FINE