Don't segfault if given an invalid URL (doh!)
Submitted by: green
This commit is contained in:
parent
363b5efd7a
commit
7613572c34
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user