mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
easygetopt: pass a valid enum to avoid compiler warning
"integer constant not in range of enumerated type 'CURLoption'"
Reported-by: Gisle Vanem
Bug: 6ebe63fac2 (commitcomment-42042843)
Closes #5915
This commit is contained in:
parent
a86cc7e2ab
commit
879007f811
@ -51,7 +51,8 @@ static struct curl_easyoption *lookup(const char *name, CURLoption id)
|
||||
|
||||
const struct curl_easyoption *curl_easy_option_by_name(const char *name)
|
||||
{
|
||||
return lookup(name, 0);
|
||||
/* when name is used, the id argument is ignored */
|
||||
return lookup(name, CURLOPT_LASTENTRY);
|
||||
}
|
||||
|
||||
const struct curl_easyoption *curl_easy_option_by_id(CURLoption id)
|
||||
|
Loading…
Reference in New Issue
Block a user