]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/srcrecords.cc
Add INTLLIBS to various parts, so netbsd-i386 works.
[apt.git] / apt-pkg / srcrecords.cc
index f8133802e5d2aa015bffa5148be1f6d9d8a27079..d4719f7c438aa63718dc27ce6489a46215961c96 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: srcrecords.cc,v 1.5 2001/02/23 06:41:55 jgg Exp $
+// $Id: srcrecords.cc,v 1.7 2002/11/09 20:38:02 doogie Exp $
 /* ######################################################################
    
    Source Package Records - Allows access to source package records
@@ -29,7 +29,8 @@
 pkgSrcRecords::pkgSrcRecords(pkgSourceList &List) : Files(0), Current(0)
 {
    Files = new Parser *[List.end() - List.begin() + 1];
-         
+   memset(Files,0,sizeof(*Files)*(List.end() - List.begin() + 1));
+   
    unsigned int Count = 0;
    pkgSourceList::const_iterator I = List.begin();
    for (; I != List.end(); I++)
@@ -45,7 +46,7 @@ pkgSrcRecords::pkgSrcRecords(pkgSourceList &List) : Files(0), Current(0)
    // Doesn't work without any source index files
    if (Count == 0)
    {
-      _error->Error(_("Sorry, you must put some 'source' URIs"
+      _error->Error(_("You must put some 'source' URIs"
                    " in your sources.list"));
       return;
    }