mirror of
https://github.com/curl/curl.git
synced 2026-08-15 11:33:39 +03:00
url.c: Fixed compilation warning
An enumerated type is mixed with another type
This commit is contained in:
parent
af4bddf20b
commit
322f0bc2f1
1 changed files with 4 additions and 3 deletions
|
|
@ -4795,9 +4795,9 @@ static CURLcode parse_remote_port(struct SessionHandle *data,
|
|||
* Override the login details from the URL with that in the CURLOPT_USERPWD
|
||||
* option or a .netrc file, if applicable.
|
||||
*/
|
||||
static int override_login(struct SessionHandle *data,
|
||||
struct connectdata *conn,
|
||||
char **userp, char **passwdp, char **optionsp)
|
||||
static CURLcode override_login(struct SessionHandle *data,
|
||||
struct connectdata *conn,
|
||||
char **userp, char **passwdp, char **optionsp)
|
||||
{
|
||||
if(data->set.str[STRING_USERNAME]) {
|
||||
free(*userp);
|
||||
|
|
@ -4838,6 +4838,7 @@ static int override_login(struct SessionHandle *data,
|
|||
conn->bits.user_passwd = TRUE; /* enable user+password */
|
||||
}
|
||||
}
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue