Commit 1752e9c0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_add_timecondition: skip superfluous varible assignment

Detected by cppcheck.
parent 65db9801
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1659,10 +1659,8 @@ CURLcode Curl_add_timecondition(struct SessionHandle *data,
{
  const struct tm *tm;
  char *buf = data->state.buffer;
  CURLcode result = CURLE_OK;
  struct tm keeptime;

  result = Curl_gmtime(data->set.timevalue, &keeptime);
  CURLcode result = Curl_gmtime(data->set.timevalue, &keeptime);
  if(result) {
    failf(data, "Invalid TIMEVALUE");
    return result;