mention that we explicitly ignore the return code
authorDaniel Stenberg <daniel@haxx.se>
Fri, 15 Feb 2008 21:38:54 +0000 (21:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 15 Feb 2008 21:38:54 +0000 (21:38 +0000)
lib/url.c

index 234c581..cecb8b6 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3682,7 +3682,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
       result = setup_range(data);
       if(result) {
         DEBUGASSERT(conn->handler->done);
-        conn->handler->done(conn, result, FALSE);
+        /* we ignore the return code for the protocol-specific DONE */
+        (void)conn->handler->done(conn, result, FALSE);
         return result;
       }