]> granicus.if.org Git - curl/commitdiff
Curl_perform: Value stored to 'res2' is never read
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:27:35 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:27:35 +0000 (23:27 +0200)
lib/transfer.c

index 2d504050c084bce399a5548678e5c0c5d1f5f71a..8985892df8f6407544526a778ddb2ab6a99e3f29 100644 (file)
@@ -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