mirror of
https://github.com/curl/curl.git
synced 2026-08-06 20:06:13 +03:00
parent
0b11660234
commit
d6c8def82a
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
int res;
|
||||
FILE *file;
|
||||
char filebuffer[512];
|
||||
bool usedarg;
|
||||
bool usedarg = FALSE;
|
||||
char *home;
|
||||
int rc = 0;
|
||||
struct OperationConfig *operation = global->first;
|
||||
|
|
@ -220,7 +220,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
#endif
|
||||
res = getparameter(option, param, &usedarg, global, operation);
|
||||
|
||||
if(param && *param && !usedarg)
|
||||
if(!res && param && *param && !usedarg)
|
||||
/* we passed in a parameter that wasn't used! */
|
||||
res = PARAM_GOT_EXTRA_PARAMETER;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue