mirror of
https://github.com/curl/curl.git
synced 2026-06-05 11:14:15 +03:00
tool_paramhelp: fix language in comments
and tweak the logic a little bit
This commit is contained in:
parent
f0b8137c1c
commit
93b29b6863
1 changed files with 6 additions and 12 deletions
|
|
@ -710,22 +710,16 @@ CURLcode get_args(struct OperationConfig *config, const size_t i)
|
|||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
/* Check we have a password for the given host user */
|
||||
if(config->userpwd && !config->oauth_bearer) {
|
||||
/* Check if we have a password for the given host user */
|
||||
if(config->userpwd && !config->oauth_bearer)
|
||||
result = checkpasswd("host", i, last, &config->userpwd);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Check we have a password for the given proxy user */
|
||||
if(config->proxyuserpwd) {
|
||||
/* Check if we have a password for the given proxy user */
|
||||
if(!result && config->proxyuserpwd)
|
||||
result = checkpasswd("proxy", i, last, &config->proxyuserpwd);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Check we have a user agent */
|
||||
if(!config->useragent) {
|
||||
/* Check if we have a user agent */
|
||||
if(!result && !config->useragent) {
|
||||
config->useragent = my_useragent();
|
||||
if(!config->useragent) {
|
||||
errorf(config->global, "out of memory");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue