diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-11-06 08:21:30 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-11-06 08:23:11 +0100 |
commit | cbb22cb76d8e516059a112cbecf0ae31d77b2d0c (patch) | |
tree | 5db28ec62c9bf9baef220af1450c0d6954f5ffd2 /lib/url.c | |
parent | 3962a3cfcbb0e068f3180a3eefcda40be7881804 (diff) | |
download | curl-cbb22cb76d8e516059a112cbecf0ae31d77b2d0c.tar.gz |
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/url.c')
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |