mirror of
https://github.com/curl/curl.git
synced 2026-04-24 18:52:16 +03:00
fixed crash in config file parser
This commit is contained in:
parent
ab9dfac24e
commit
3b91db110b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue