mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Curl_add_timecondition: skip superfluous varible assignment
Detected by cppcheck.
This commit is contained in:
parent
65db980106
commit
1752e9c088
@ -1659,10 +1659,8 @@ CURLcode Curl_add_timecondition(struct SessionHandle *data,
|
|||||||
{
|
{
|
||||||
const struct tm *tm;
|
const struct tm *tm;
|
||||||
char *buf = data->state.buffer;
|
char *buf = data->state.buffer;
|
||||||
CURLcode result = CURLE_OK;
|
|
||||||
struct tm keeptime;
|
struct tm keeptime;
|
||||||
|
CURLcode result = Curl_gmtime(data->set.timevalue, &keeptime);
|
||||||
result = Curl_gmtime(data->set.timevalue, &keeptime);
|
|
||||||
if(result) {
|
if(result) {
|
||||||
failf(data, "Invalid TIMEVALUE");
|
failf(data, "Invalid TIMEVALUE");
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user