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
This commit is contained in:
Daniel Stenberg 2017-11-06 08:21:30 +01:00
parent 3962a3cfcb
commit cbb22cb76d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 2 additions and 3 deletions

View File

@ -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;