fixed crash in config file parser

This commit is contained in:
Daniel Stenberg 2000-11-15 20:45:29 +00:00
parent ab9dfac24e
commit 3b91db110b
1 changed files with 1 additions and 1 deletions

View File

@ -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);