From 5f13941c1859c3a08d5a5b321c7f99481ca66dae Mon Sep 17 00:00:00 2001 From: daanx Date: Wed, 25 Dec 2024 14:12:45 -0800 Subject: [PATCH] fix constructor re-initialization on subproc_main --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index 4631d9d9..4feee790 100644 --- a/src/init.c +++ b/src/init.c @@ -97,7 +97,7 @@ const mi_page_t _mi_page_empty = { // may lead to allocation itself on some platforms) // -------------------------------------------------------- -static mi_decl_cache_align mi_subproc_t subproc_main; +static mi_decl_cache_align mi_subproc_t subproc_main = { }; // note: empty initializer to prevent running the constructor (in C++ compilation) static mi_decl_cache_align mi_tld_t tld_empty = { 0, // thread_id