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
This commit is contained in:
Daniel Stenberg 2021-06-30 11:17:57 +02:00
parent 8feeafc61a
commit 81cc2e48da
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

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