From: Daniel Stenberg Date: Wed, 30 Jun 2021 09:17:57 +0000 (+0200) Subject: url: (void)-prefix a curl_url_get() call X-Git-Tag: curl-7_78_0~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81cc2e48da8c140736e29477ce1cb6fdcfb7464d;p=thirdparty%2Fcurl.git url: (void)-prefix a curl_url_get() call Coverity (CID 1486645) pointed out a use of curl_url_get() in the parse_proxy function where the return code wasn't checked. A (void)-prefix makes the intention obvious. Closes #7320 --- diff --git a/lib/url.c b/lib/url.c index 764f1445ad..a8208d749e 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2464,7 +2464,7 @@ static CURLcode parse_proxy(struct Curl_easy *data, conn->bits.proxy_user_passwd = TRUE; /* enable it */ } - curl_url_get(uhp, CURLUPART_PORT, &portptr, 0); + (void)curl_url_get(uhp, CURLUPART_PORT, &portptr, 0); if(portptr) { port = (int)strtol(portptr, NULL, 10);