Avoid a segfault (due to an unitialized pointer) when parsing URLs that have

no scheme or host part.
This commit is contained in:
Dag-Erling Smørgrav 2000-12-13 11:21:09 +00:00
parent 937c4dfa08
commit 1ba8497660
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69975

View file

@ -314,6 +314,8 @@ fetchParseURL(char *URL)
*/
if (URL[1] == '/')
URL = (p += 2);
} else {
p = URL;
}
if (!*URL || *URL == '/')
goto nohost;