Archived
1
0
Fork 0

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:
Henrik Hautakoski 2011-10-02 22:42:34 +02:00
parent 356cddf07d
commit 1f46350f84

View file

@ -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;
} }
} }