]> granicus.if.org Git - curl/commitdiff
Curl_add_timecondition: skip superfluous varible assignment
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Oct 2014 20:48:49 +0000 (22:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 24 Oct 2014 06:23:19 +0000 (08:23 +0200)
Detected by cppcheck.

lib/http.c

index 35baa3407d57d9f483bf8b56340d8ef1c4a76741..6d108dff5f5f039e2f795b0d89cbb447bce58b51 100644 (file)
@@ -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;