Skip to content
Snippets Groups Projects
Commit 3b91db11 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fixed crash in config file parser

parent ab9dfac2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment