aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-23 22:48:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-24 08:23:19 +0200
commit1752e9c088d9bb7a3156dba9c66f7f64dd87afa9 (patch)
tree13bf59809b4b3d5b2c3432c6463ff1dd001952c4 /lib
parent65db980106d38defee8782373485d9085497b28e (diff)
Curl_add_timecondition: skip superfluous varible assignment
Detected by cppcheck.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c
index 35baa3407..6d108dff5 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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;