Don't segfault if given an invalid URL (doh!)

Submitted by:		green
This commit is contained in:
des 2000-07-09 10:14:22 +00:00
parent 6740a4d5b6
commit 179880d3bc

View File

@ -400,7 +400,8 @@ fetch(char *URL, char *path)
fclose(f);
if (of && of != stdout)
fclose(of);
fetchFreeURL(url);
if (url)
fetchFreeURL(url);
return r;
}