From 66048cb6cc273dc8270f775209b01db0363ecee8 Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 19 May 2020 13:31:24 -0700 Subject: [PATCH] fix return value for page_unreset --- src/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/segment.c b/src/segment.c index b2521524..d53ecfd1 100644 --- a/src/segment.c +++ b/src/segment.c @@ -245,7 +245,7 @@ static bool mi_page_unreset(mi_segment_t* segment, mi_page_t* page, size_t size, mi_assert_internal(page->is_reset); mi_assert_internal(page->is_committed); mi_assert_internal(!segment->mem_is_fixed); - if (segment->mem_is_fixed || !page->is_committed || !page->is_reset) return; + if (segment->mem_is_fixed || !page->is_committed || !page->is_reset) return true; page->is_reset = false; size_t psize; uint8_t* start = mi_segment_raw_page_start(segment, page, &psize);