aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-06 08:21:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-06 08:23:11 +0100
commitcbb22cb76d8e516059a112cbecf0ae31d77b2d0c (patch)
tree5db28ec62c9bf9baef220af1450c0d6954f5ffd2 /lib
parent3962a3cfcbb0e068f3180a3eefcda40be7881804 (diff)
url: remove unncessary NULL-check
Since 'conn' won't be NULL in there and we also access the pointer in there without the check. Coverity CID 1420610
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index aeb0c9027..169eecf71 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -7221,9 +7221,8 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn)
{
struct SingleRequest *k = &data->req;
- if(conn)
- conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to
- * use */
+ conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to
+ use */
data->state.done = FALSE; /* *_done() is not called yet */
data->state.expect100header = FALSE;