summaryrefslogtreecommitdiff
path: root/source/fitz/memento.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-23 14:54:53 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-23 14:59:51 +0000
commita236e7d8af47f25d854c566b5bce29e4b4dcd46d (patch)
tree7594abd72aa3bf156fa8e4ef34c64afc12eea164 /source/fitz/memento.c
parent36a97d6c586991066befe4c38d9bd15b917f8723 (diff)
downloadmupdf-a236e7d8af47f25d854c566b5bce29e4b4dcd46d.tar.xz
Tweak Memento to avoid suprious valgrind warnings.
Diffstat (limited to 'source/fitz/memento.c')
-rw-r--r--source/fitz/memento.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/memento.c b/source/fitz/memento.c
index 83522873..b29e07a1 100644
--- a/source/fitz/memento.c
+++ b/source/fitz/memento.c
@@ -694,8 +694,10 @@ static void Memento_storeDetails(Memento_BlkHeader *head, int type)
details->count = count;
details->sequence = memento.sequence;
details->next = NULL;
+ VALGRIND_MAKE_MEM_DEFINED(&head->details_tail, sizeof(head->details_tail));
*head->details_tail = details;
head->details_tail = &details->next;
+ VALGRIND_MAKE_MEM_NOACCESS(&head->details_tail, sizeof(head->details_tail));
}
#endif