]> git.saurik.com Git - apt.git/blobdiff - methods/rred.cc
* apt-pkg/deb/dpkgpm.cc:
[apt.git] / methods / rred.cc
index 9ad0e44646db82711c62014ae3a9613fa051c134..849973e1a6405a8fa06a1f37546789344b194a99 100644 (file)
@@ -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;
                }