From 81cc2e48da8c140736e29477ce1cb6fdcfb7464d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 30 Jun 2021 11:17:57 +0200 Subject: [PATCH] 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 --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3