diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 23:27:35 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 23:27:35 +0200 |
commit | 8f136288c5b6ad9fe3be9cd69a96f585f6eda2aa (patch) | |
tree | 8d1bd41cf2f15c62ca286ddd8eca22612e2b9071 /lib | |
parent | 9799dbebd6ab174a01fef2ff62d8806b1ea8bbd5 (diff) |
Curl_perform: Value stored to 'res2' is never read
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 2d504050c..8985892df 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2113,9 +2113,9 @@ CURLcode Curl_perform(struct SessionHandle *data) /* Curl_do() failed, clean up left-overs in the done-call, but note that at some cases the conn pointer is NULL when Curl_do() failed and the connection cache is very small so only call Curl_done() if - conn is still "alive". - */ - res2 = Curl_done(&conn, res, FALSE); + conn is still "alive". */ + /* ignore return code since we already have an error to return */ + (void)Curl_done(&conn, res, FALSE); /* * Important: 'conn' cannot be used here, since it may have been closed |