svn commit: r257701 - head/usr.sbin/pkg
Bryan Drewery
bdrewery at FreeBSD.org
Tue Nov 5 13:36:05 UTC 2013
Author: bdrewery (ports committer)
Date: Tue Nov 5 13:36:05 2013
New Revision: 257701
URL: http://svnweb.freebsd.org/changeset/base/257701
Log:
Remove condition which can never be true as the previous loop
is never exited while remote == NULL.
Reported by: Coverity
Approved by: bapt
MFC after: 2 days
Modified:
head/usr.sbin/pkg/pkg.c
Modified: head/usr.sbin/pkg/pkg.c
==============================================================================
--- head/usr.sbin/pkg/pkg.c Tue Nov 5 12:55:28 2013 (r257700)
+++ head/usr.sbin/pkg/pkg.c Tue Nov 5 13:36:05 2013 (r257701)
@@ -233,9 +233,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;
More information about the svn-src-all
mailing list