svn commit: r283787 - stable/10/usr.sbin/pkg

Baptiste Daroussin bapt at FreeBSD.org
Sat May 30 21:23:42 UTC 2015


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;


More information about the svn-src-all mailing list