fix constructor re-initialization on subproc_main

This commit is contained in:
daanx 2024-12-25 14:12:45 -08:00
parent 7ae726bb39
commit 5f13941c18

View file

@ -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