From a236e7d8af47f25d854c566b5bce29e4b4dcd46d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 23 Mar 2016 14:54:53 +0000 Subject: Tweak Memento to avoid suprious valgrind warnings. --- source/fitz/memento.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/memento.c') 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 -- cgit v1.2.3