summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-01-20 18:32:32 +0000
committerRobin Watts <robin.watts@artifex.com>2012-01-20 18:32:32 +0000
commit63cca1e65b6c81a6ff29fac46154b8a6ccaaa058 (patch)
tree4a9ff3f96a482e62620035914ba3b5bcd48b9a97
parentf08f46797df8d6cca982c08ed16eb1934b1dc7d9 (diff)
downloadmupdf-63cca1e65b6c81a6ff29fac46154b8a6ccaaa058.tar.xz
Ensure Memento checking is reflected in block numbers
-rw-r--r--fitz/memento.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fitz/memento.c b/fitz/memento.c
index 3ea00f92..85185b51 100644
--- a/fitz/memento.c
+++ b/fitz/memento.c
@@ -1083,6 +1083,8 @@ static int Memento_Internal_checkAllAlloced(Memento_BlkHeader *memblk, void *arg
data->postCorrupt = 0;
data->freeCorrupt = 0;
}
+ else
+ memblk->lastCheckedOK = globals.sequence;
return 0;
}
@@ -1123,6 +1125,8 @@ static int Memento_Internal_checkAllFreed(Memento_BlkHeader *memblk, void *arg)
data->postCorrupt = 0;
data->freeCorrupt = 0;
}
+ else
+ memblk->lastCheckedOK = globals.sequence;
return 0;
}