diff options
author | bapt <bapt@FreeBSD.org> | 2015-05-30 21:23:41 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-05-30 21:23:41 +0000 |
commit | 644eb326fc4976c7ca5ee8e499a5c17a692f33f5 (patch) | |
tree | 734c3a705c0eb7b866f9d731654f156c6e9d1435 /usr.sbin | |
parent | 80880ee480bdc5f5a959b76200002bf202ab4373 (diff) | |
download | FreeBSD-src-644eb326fc4976c7ca5ee8e499a5c17a692f33f5.zip FreeBSD-src-644eb326fc4976c7ca5ee8e499a5c17a692f33f5.tar.gz |
MFC: r257701 (by bdrewery)
Remove condition which can never be true as the previous loop
is never exited while remote == NULL.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg/pkg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 09be1c5..d19d139 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -238,9 +238,6 @@ fetch_to_fd(const char *url, char *path) } } - if (remote == NULL) - goto fetchfail; - while (done < st.size) { if ((r = fread(buf, 1, sizeof(buf), remote)) < 1) break; |