mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
fixed crash in config file parser
This commit is contained in:
parent
ab9dfac24e
commit
3b91db110b
@ -1016,7 +1016,7 @@ static int parseconfig(char *filename,
|
||||
res = getparameter(tok1 + 1, tok2, &usedarg, config);
|
||||
free(tok1);
|
||||
if (!usedarg) {
|
||||
if ('-' != tok2[0]) {
|
||||
if (tok2 && ('-' != tok2[0])) {
|
||||
/* this is not an option, this is a URL */
|
||||
if (config->url)
|
||||
free(config->url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user