summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-07-26 01:11:53 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-07-26 01:11:53 +0200
commita67de73e4b66d67eeafe5d8c1f7fd5b031faeb3f (patch)
tree5acaa15c497752ef522534c335f34d7f4cab347b /apt-pkg
parent4b2de6720d65c9e7a2cfded0da7d04d758a8e1e2 (diff)
merge with lp:apt/debian-sid
Remove a bug (= an evil amok running if) introduced by the merge in 1817 which cause a segfault in the destructor for the dynamic mmap.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/mmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 917466c2f..aa52b4c30 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -201,7 +201,7 @@ DynamicMMap::~DynamicMMap()
if (Fd == 0)
{
#ifdef _POSIX_MAPPED_FILES
- if(munmap(Base, WorkSpace) < 0)
+ munmap(Base, WorkSpace);
#else
delete [] (unsigned char *)Base;
#endif