Author: bapt Date: Sat May 30 21:23:41 2015 New Revision: 283787 URL: https://svnweb.freebsd.org/changeset/base/283787
Log: MFC: r257701 (by bdrewery) Remove condition which can never be true as the previous loop is never exited while remote == NULL. Modified: stable/10/usr.sbin/pkg/pkg.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/pkg/pkg.c ============================================================================== --- stable/10/usr.sbin/pkg/pkg.c Sat May 30 20:39:19 2015 (r283786) +++ stable/10/usr.sbin/pkg/pkg.c Sat May 30 21:23:41 2015 (r283787) @@ -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; _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"