diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-23 14:54:53 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-23 14:59:51 +0000 |
commit | a236e7d8af47f25d854c566b5bce29e4b4dcd46d (patch) | |
tree | 7594abd72aa3bf156fa8e4ef34c64afc12eea164 | |
parent | 36a97d6c586991066befe4c38d9bd15b917f8723 (diff) | |
download | mupdf-a236e7d8af47f25d854c566b5bce29e4b4dcd46d.tar.xz |
Tweak Memento to avoid suprious valgrind warnings.
-rw-r--r-- | source/fitz/memento.c | 2 |
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 |