diff options
author | Michael Vogt <mvo@debian.org> | 2011-02-14 21:42:04 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2011-02-14 21:42:04 +0100 |
commit | 42f45a9a98ee298cfdd301d16a39b0094f6ff9d5 (patch) | |
tree | d66c24f537044f755fdd6f4a4af862f9bd6029d6 /methods/rred.cc | |
parent | 94244f75f8280c9b4018736d503d17455c284b2d (diff) | |
parent | 2a79d5b560398427f5538865099b6777128d8bed (diff) |
merged from lp:~donkult/apt/sid
Diffstat (limited to 'methods/rred.cc')
-rw-r--r-- | methods/rred.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/rred.cc b/methods/rred.cc index 9ad0e4464..849973e1a 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -256,7 +256,7 @@ RredMethod::State RredMethod::patchMMap(FileFd &Patch, FileFd &From, /*{{{*/ if (Patch.gzFd() != NULL) { unsigned long mapSize = Patch.Size(); DynamicMMap* dyn = new DynamicMMap(0, mapSize, 0); - if (dyn->Data() == 0) { + if (dyn->validData() == false) { delete dyn; return MMAP_FAILED; } |