From baabc775034efeb55a93c8088492933e56d8334f Mon Sep 17 00:00:00 2001 From: daan Date: Sun, 25 Aug 2019 23:02:41 -0700 Subject: [PATCH] use proper atomic initialization macros --- src/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index 76e586f2..290caeec 100644 --- a/src/init.c +++ b/src/init.c @@ -19,7 +19,8 @@ const mi_page_t _mi_page_empty = { 0, #endif 0, // used - NULL, 0, 0, + NULL, + ATOMIC_VAR_INIT(0), ATOMIC_VAR_INIT(0), 0, NULL, NULL, NULL #if (MI_INTPTR_SIZE==8 && MI_SECURE>0) || (MI_INTPTR_SIZE==4 && MI_SECURE==0) , { NULL } // padding @@ -81,7 +82,7 @@ const mi_heap_t _mi_heap_empty = { NULL, MI_SMALL_PAGES_EMPTY, MI_PAGE_QUEUES_EMPTY, - NULL, + ATOMIC_VAR_INIT(NULL), 0, 0, 0,