From: Daniel Stenberg Date: Mon, 6 Nov 2017 07:21:30 +0000 (+0100) Subject: url: remove unncessary NULL-check X-Git-Tag: curl-7_57_0~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbb22cb76d8e516059a112cbecf0ae31d77b2d0c;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/url.c b/lib/url.c index aeb0c9027b..169eecf713 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;