From cbb22cb76d8e516059a112cbecf0ae31d77b2d0c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 6 Nov 2017 08:21:30 +0100 Subject: 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 --- lib/url.c | 5 ++--- 1 file 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; -- cgit v1.2.3