Commit 39a282bf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

moved a variable declaration to remove a compiler warnings with the MSVC

compiler, mentioned by Andi Jahja
parent 29583004
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1050,7 +1050,6 @@ CURLcode Curl_telnet(struct connectdata *conn)
  char *buf = data->state.buffer;
  ssize_t nread;
  struct TELNET *tn;
  struct timeval now;           /* current time */

  code = init_telnet(conn);
  if(code)
@@ -1205,6 +1204,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
      }
    }
    if(data->set.timeout) {
      struct timeval now;           /* current time */
      now = Curl_tvnow();
      if(Curl_tvdiff(now, conn->created)/1000 >= data->set.timeout) {
        failf(data, "Time-out");