fix initialization of union padding; issue found through valgrind by @jasongibson

This commit is contained in:
daan 2020-04-30 17:39:34 -07:00
parent 9a33f23b5f
commit 0af9dd6fd2

View File

@ -205,6 +205,7 @@ static bool mi_region_try_alloc_os(size_t blocks, bool commit, bool allow_large,
// and share it
mi_region_info_t info;
info.value = 0; // initialize the full union to zero
info.x.valid = true;
info.x.is_large = region_large;
info.x.numa_node = (short)_mi_os_numa_node(tld);