summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/mmap.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:06 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:06 +0000
commit0db4a45bf91faa06616a90865068ac6c07885edf (patch)
treea4b74a9889a14ef16326e5d1314b3590daf4f56c /apt-pkg/contrib/mmap.cc
parent076d01b04c20200fc72fc22de41c4872af484650 (diff)
Ensure the memory buffer is 0'd
Author: jgg Date: 2001-05-27 05:19:30 GMT Ensure the memory buffer is 0'd
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-rw-r--r--apt-pkg/contrib/mmap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index cfe476763..bc22fba67 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: mmap.cc,v 1.21 2001/02/20 07:03:17 jgg Exp $
+// $Id: mmap.cc,v 1.22 2001/05/27 05:19:30 jgg Exp $
/* ######################################################################
MMap Class - Provides 'real' mmap or a faked mmap using read().
@@ -176,6 +176,7 @@ DynamicMMap::DynamicMMap(unsigned long Flags,unsigned long WorkSpace) :
return;
Base = new unsigned char[WorkSpace];
+ memset(Base,0,WorkSpace);
iSize = 0;
}
/*}}}*/