// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: srcrecords.cc,v 1.4 2001/02/20 07:03:17 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
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++)
}
Files[Count] = 0;
- // Doesnt work without any source index files
+ // 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;
}