mirror of
https://github.com/curl/curl.git
synced 2026-05-02 21:37:52 +03:00
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:
parent
8feeafc61a
commit
81cc2e48da
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue