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:
Родитель
8feeafc61a
Коммит
81cc2e48da
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче