Skip to content

Commit

Permalink
Curl_add_timecondition: skip superfluous varible assignment
Browse files Browse the repository at this point in the history
Detected by cppcheck.
  • Loading branch information
bagder committed Oct 24, 2014
1 parent 65db980 commit 1752e9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/http.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1752e9c

Please sign in to comment.