summaryrefslogtreecommitdiff
path: root/apt-pkg/srcrecords.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:25 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:25 +0000
commit4641a9d2dcf92dcb3083bfd6350b36874208718a (patch)
treee6e31ef6b0a3ff284b9df20279772a08fce8e63c /apt-pkg/srcrecords.cc
parente8cbb49ff3647c251152ded28709ebe04b70cc4a (diff)
downloadapt-4641a9d2dcf92dcb3083bfd6350b36874208718a.tar.gz
Segfault with missing source files. Closes: #100325
Author: jgg Date: 2001-06-10 02:12:09 GMT Segfault with missing source files. Closes: #100325
Diffstat (limited to 'apt-pkg/srcrecords.cc')
-rw-r--r--apt-pkg/srcrecords.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/srcrecords.cc b/apt-pkg/srcrecords.cc
index f8133802e..f56105369 100644
--- a/apt-pkg/srcrecords.cc
+++ b/apt-pkg/srcrecords.cc
@@ -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.6 2001/06/10 02:12:09 jgg 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++)