summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/mmap.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-02-14 21:42:04 +0100
committerMichael Vogt <mvo@debian.org>2011-02-14 21:42:04 +0100
commit42f45a9a98ee298cfdd301d16a39b0094f6ff9d5 (patch)
treed66c24f537044f755fdd6f4a4af862f9bd6029d6 /apt-pkg/contrib/mmap.h
parent94244f75f8280c9b4018736d503d17455c284b2d (diff)
parent2a79d5b560398427f5538865099b6777128d8bed (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg/contrib/mmap.h')
-rw-r--r--apt-pkg/contrib/mmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.h b/apt-pkg/contrib/mmap.h
index e9baa9339..2bf2c1540 100644
--- a/apt-pkg/contrib/mmap.h
+++ b/apt-pkg/contrib/mmap.h
@@ -62,6 +62,7 @@ class MMap
inline void *Data() {return Base;};
inline unsigned long Size() {return iSize;};
inline void AddSize(unsigned long const size) {iSize += size;};
+ inline bool validData() const { return Base != (void *)-1 && Base != 0; };
// File manipulators
bool Sync();