summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-05-22 10:16:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-05-22 10:16:10 +0200
commitfa64f7b255b6fce2949ccd13a01714a595020534 (patch)
treec36790770a73a4523871ca69c11ffa4e61cadabf /apt-pkg
parente27a1f01f90f5eae73f66f25b316ee8859f72105 (diff)
parent9c30a078c04fe1e86b0aea64cc9cb790e95a7c57 (diff)
merged from david
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/mmap.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 160718ea5..2d12b6fe9 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -84,6 +84,7 @@ bool MMap::Map(FileFd &Fd)
if ((Flags & ReadOnly) != ReadOnly)
return _error->Error("Compressed file %s can only be mapped readonly", Fd.Name().c_str());
Base = new unsigned char[iSize];
+ SyncToFd = new FileFd();
if (Fd.Seek(0L) == false || Fd.Read(Base, iSize) == false)
return _error->Error("Compressed file %s can't be read into mmap", Fd.Name().c_str());
return true;