From: Daniel Stenberg Date: Wed, 15 Nov 2000 20:45:29 +0000 (+0000) Subject: fixed crash in config file parser X-Git-Tag: curl-7_5~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b91db110b2b60e40eb90e2f6353414b584d9d41;p=thirdparty%2Fcurl.git fixed crash in config file parser --- diff --git a/src/main.c b/src/main.c index 82cee7313e..9e5145ce0d 100644 --- a/src/main.c +++ b/src/main.c @@ -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);