Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2015 21:23:41 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283787 - stable/10/usr.sbin/pkg
Message-ID:  <201505302123.t4ULNfRG035619@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505302123.t4ULNfRG035619>