diff options
author | daan <daan@effp.org> | 2022-10-31 08:34:20 -0700 |
---|---|---|
committer | daan <daan@effp.org> | 2022-10-31 08:34:20 -0700 |
commit | 751e4567674420b165fa643e779fae239f3e3860 (patch) | |
tree | 8c3e17fc61f696293e9f71f9531e03c3cb21d10f | |
parent | 0a8d7d98d8f65b8880c295941984e9a5c7ec02af (diff) |
possible fix for warning in issue #635
-rw-r--r-- | src/os.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -373,7 +373,7 @@ static bool mi_os_mem_free(void* addr, size_t size, bool was_committed, mi_stats // In mi_os_mem_alloc_aligned the fallback path may have returned a pointer inside // the memory region returned by VirtualAlloc; in that case we need to free using // the start of the region. - MEMORY_BASIC_INFORMATION info = { 0, 0 }; + MEMORY_BASIC_INFORMATION info = { 0 }; VirtualQuery(addr, &info, sizeof(info)); if (info.AllocationBase < addr && ((uint8_t*)addr - (uint8_t*)info.AllocationBase) < (ptrdiff_t)MI_SEGMENT_SIZE) { errcode = 0; |