Curl_add_timecondition: skip superfluous varible assignment

Detected by cppcheck.
This commit is contained in:
Daniel Stenberg 2014-10-23 22:48:49 +02:00
Родитель 65db980106
Коммит 1752e9c088
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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;