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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to