dlight.c: don't use errno from http_fetch_file
http_fetch_file does not set errno. so dont use it.
This commit is contained in:
parent
356cddf07d
commit
1f46350f84
1 changed files with 1 additions and 2 deletions
3
dlight.c
3
dlight.c
|
|
@ -58,8 +58,7 @@ static void process_items(rss_t rss, struct target *t) {
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
file = http_fetch_file(item.link);
|
file = http_fetch_file(item.link);
|
||||||
if (file == NULL) {
|
if (file == NULL) {
|
||||||
error("download failed: %s",
|
error("download failed");
|
||||||
strerror(errno));
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue