diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-23 22:48:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-24 08:23:19 +0200 |
commit | 1752e9c088d9bb7a3156dba9c66f7f64dd87afa9 (patch) | |
tree | 13bf59809b4b3d5b2c3432c6463ff1dd001952c4 /lib | |
parent | 65db980106d38defee8782373485d9085497b28e (diff) |
Curl_add_timecondition: skip superfluous varible assignment
Detected by cppcheck.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 4 |
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; |