tool_getparam: fix hiding of command line secrets

Closes #10276
This commit is contained in:
Harry Sintonen 2023-01-11 11:39:33 +01:00 committed by Daniel Stenberg
parent d6b5d9f4ae
commit 2ed0e1f70e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 10 additions and 7 deletions

View file

@ -223,7 +223,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
#ifdef DEBUG_CONFIG
fprintf(stderr, "PARAM: \"%s\"\n",(param ? param : "(null)"));
#endif
res = getparameter(option, param, &usedarg, global, operation);
res = getparameter(option, param, NULL, &usedarg, global, operation);
operation = global->last;
if(!res && param && *param && !usedarg)