Test the return of fetchParseURL(3)
CID: 1125811 MFC after: 1 week
This commit is contained in:
parent
92947daacf
commit
79fe80ef10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278173
@ -202,7 +202,11 @@ fetch_to_fd(const char *url, char *path)
|
||||
|
||||
retry = max_retry;
|
||||
|
||||
u = fetchParseURL(url);
|
||||
if ((u = fetchParseURL(url)) == NULL) {
|
||||
warn("fetchParseURL('%s')", url);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
while (remote == NULL) {
|
||||
if (retry == max_retry) {
|
||||
if (strcmp(u->scheme, "file") != 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user